|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfedora.utilities.FileUtils
public class FileUtils
| Field Summary | |
|---|---|
static int |
BUFFER
|
| Constructor Summary | |
|---|---|
FileUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
copy(java.io.File source,
java.io.File destination)
Copy a file or directory. |
static boolean |
copy(java.io.InputStream source,
java.io.OutputStream destination)
Copy an InputStream to an OutputStream. |
static boolean |
delete(java.io.File file)
Delete a File. |
static boolean |
delete(java.lang.String file)
Delete the specified file or directory. |
static java.io.FileFilter |
getPrefixFileFilter(java.lang.String prefix)
|
static java.io.FileFilter |
getSuffixFileFilter(java.lang.String suffix)
|
static java.util.Properties |
loadProperties(java.io.File f)
Load properties from the given file. |
static boolean |
move(java.io.File source,
java.io.File destination)
Move a file or directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BUFFER
| Constructor Detail |
|---|
public FileUtils()
| Method Detail |
|---|
public static boolean copy(java.io.InputStream source,
java.io.OutputStream destination)
source - destination -
true if the operation was successful;
false otherwise (which includes a null input).
public static boolean copy(java.io.File source,
java.io.File destination)
source - destination -
true if the operation was successful;
false otherwise (which includes a null input).public static boolean delete(java.io.File file)
file - the File to delete.
true if the operation was successful;
false otherwise (which includes a null input).public static boolean delete(java.lang.String file)
file - File or directory to delete
true if the operation was successful;
false otherwise (which includes a null input).
public static boolean move(java.io.File source,
java.io.File destination)
source - destination -
true if the operation was successful;
false otherwise (which includes a null input).
public static java.util.Properties loadProperties(java.io.File f)
throws java.io.IOException
java.io.IOExceptionpublic static java.io.FileFilter getPrefixFileFilter(java.lang.String prefix)
public static java.io.FileFilter getSuffixFileFilter(java.lang.String suffix)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||