|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.io.FileUtils
org.mule.util.FileUtils
FileUtils contains useful methods for dealing with files &
directories.
| Constructor Summary | |
FileUtils()
|
|
| Method Summary | |
static void |
copyStreamToFile(InputStream input,
File destination)
|
static File |
createFile(String filename)
|
static boolean |
deleteTree(File dir)
|
static String |
getResourcePath(String resourceName,
Class callingClass)
|
static String |
getResourcePath(String resourceName,
Class callingClass,
String encoding)
|
static File |
newFile(File parent,
String child)
Workaround for JDK bug 4117557. |
static File |
newFile(String pathName)
Workaround for JDK bug 4117557. |
static File |
newFile(String parent,
String child)
Workaround for JDK bug 4117557. |
static File |
newFile(URI uri)
Workaround for JDK bug 4117557. |
static File |
openDirectory(String directory)
|
static String |
prepareWinFilename(String filename)
|
static File |
stringToFile(String filename,
String data)
Reads the incoming String into a file at at the given destination. |
static File |
stringToFile(String filename,
String data,
boolean append)
|
static File |
stringToFile(String filename,
String data,
boolean append,
boolean newLine)
|
static void |
unzip(File archive,
File directory)
Unzip the specified archive to the given directory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileUtils()
| Method Detail |
public static void copyStreamToFile(InputStream input,
File destination)
throws IOException
IOException
public static File createFile(String filename)
throws IOException
IOExceptionpublic static String prepareWinFilename(String filename)
public static File openDirectory(String directory)
throws IOException
IOException
public static File stringToFile(String filename,
String data)
throws IOException
filename - name and path of the file to createdata - the contents of the file
IOException - If the creating or writing to the file stream fails
public static File stringToFile(String filename,
String data,
boolean append)
throws IOException
IOException
public static File stringToFile(String filename,
String data,
boolean append,
boolean newLine)
throws IOException
IOException
public static String getResourcePath(String resourceName,
Class callingClass)
throws IOException
IOException
public static String getResourcePath(String resourceName,
Class callingClass,
String encoding)
throws IOException
IOExceptionpublic static boolean deleteTree(File dir)
public static void unzip(File archive,
File directory)
throws IOException
IOExceptionpublic static File newFile(String pathName)
java.io.File class.
No physical file created in this method.
Filepublic static File newFile(URI uri)
java.io.File class.
No physical file created in this method.
File
public static File newFile(File parent,
String child)
java.io.File class.
No physical file created in this method.
File
public static File newFile(String parent,
String child)
java.io.File class.
No physical file created in this method.
File
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||