|
Copyright 2002 by aragost | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.aragost.io.FileUtils
Abstract class with various utility functions related to files and dictionaries.
Constructor Summary | |
FileUtils()
|
Method Summary | |
static boolean |
delete(java.io.File file)
Delete the specified file. |
static void |
move(java.io.File src,
java.io.File dst)
Move the contents from one file to another. |
static java.lang.String |
readFile(java.io.File f)
Read the specifed file and return the contents as a String |
static java.util.Iterator |
traverse(java.io.File root)
|
static java.util.Iterator |
traverse(java.io.File root,
java.io.FileFilter filter)
|
static java.util.Iterator |
traverse(java.io.File root,
java.lang.String extension)
|
static java.util.Iterator |
traverse(java.io.File root,
java.lang.String extension,
boolean includeDirs)
|
static void |
trim(java.io.File f)
Trim the specified file. |
static void |
writeFile(java.io.File f,
java.lang.String contents)
Write the specified String to the specified file. |
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 java.lang.String readFile(java.io.File f) throws java.io.IOException
f
- The file to read
java.io.IOException
public static void writeFile(java.io.File f, java.lang.String contents) throws java.io.IOException
f
- The file to readcontents
- The contents to write to the file
java.io.IOException
public static void trim(java.io.File f) throws java.io.IOException
java.io.IOException
public static void move(java.io.File src, java.io.File dst) throws java.io.IOException
src
- The file to copydst
- The file to write to
java.io.IOException
public static boolean delete(java.io.File file)
public static java.util.Iterator traverse(java.io.File root)
public static java.util.Iterator traverse(java.io.File root, java.lang.String extension)
public static java.util.Iterator traverse(java.io.File root, java.lang.String extension, boolean includeDirs)
public static java.util.Iterator traverse(java.io.File root, java.io.FileFilter filter)
|
Copyright 2002 by aragost | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |