org.apache.activemq.util
Class IOHelper
java.lang.Object
org.apache.activemq.util.IOHelper
public final class IOHelper
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_DIR_NAME_LENGTH
protected static final int MAX_DIR_NAME_LENGTH
MAX_FILE_NAME_LENGTH
protected static final int MAX_FILE_NAME_LENGTH
getDefaultDataDirectory
public static java.lang.String getDefaultDataDirectory()
getDefaultStoreDirectory
public static java.lang.String getDefaultStoreDirectory()
getDefaultDirectoryPrefix
public static java.lang.String getDefaultDirectoryPrefix()
- Allows a system property to be used to overload the default data
directory which can be useful for forcing the test cases to use a target/
prefix
deleteFile
public static boolean deleteFile(java.io.File fileToDelete)
deleteChildren
public static boolean deleteChildren(java.io.File parent)
moveFile
public static void moveFile(java.io.File src,
java.io.File targetDirectory)
throws java.io.IOException
- Throws:
java.io.IOException
copyFile
public static void copyFile(java.io.File src,
java.io.File dest)
throws java.io.IOException
- Throws:
java.io.IOException
copyInputStream
public static void copyInputStream(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
mkdirs
public static void mkdirs(java.io.File dir)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2005-2012 FuseSource, Corp.. All Rights Reserved.