|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.homeunix.thecave.moss.util.FileFunctions
public class FileFunctions
Common file-based functions for which there is no good support in Java.
| Method Summary | |
|---|---|
static void |
copyFile(java.io.File source,
java.io.File dest)
Copies a given file from Source to Destination |
static java.io.FilenameFilter |
getDirectoryFilter(boolean includeHiddenDirectories)
|
static java.io.FilenameFilter |
getExtensionFilter(boolean includeHiddenDirectories,
java.lang.String... extensions)
|
static java.util.List<java.io.File> |
getFileTree(java.io.File root)
Returns a list of all File objects which descend from the given root. |
static boolean |
isFolderWritable(java.io.File folder)
Simple test to see if a folder is writable. |
static java.lang.String |
readTextStream(java.io.InputStream stream)
Reads a String from a given InputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void copyFile(java.io.File source,
java.io.File dest)
throws java.io.IOException
source - dest -
java.io.IOException
public static java.lang.String readTextStream(java.io.InputStream stream)
throws java.io.IOException
stream -
java.io.IOExceptionpublic static boolean isFolderWritable(java.io.File folder)
folder -
public static java.util.List<java.io.File> getFileTree(java.io.File root)
root -
public static java.io.FilenameFilter getDirectoryFilter(boolean includeHiddenDirectories)
public static java.io.FilenameFilter getExtensionFilter(boolean includeHiddenDirectories,
java.lang.String... extensions)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||