|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--javatools.io.FileUtils
Contains a set of function useful for files.
| Constructor Summary | |
FileUtils()
Creates new FileUtils |
|
| Method Summary | |
static void |
deleteFileGroup(java.io.File inFile,
java.io.FileFilter filter)
Deletes all the files contained in directory inFile using filter
filter. |
static java.io.File |
getDirectory(java.io.File inFile)
Returns the container directory for this file. |
static java.lang.String |
getDirectory(java.lang.String inFilePath)
Returns the containing directory of a file. |
static java.lang.String |
getExtension(java.io.File inFile)
Returns the extension (the one after the dot...) for a file. |
static java.lang.String |
getExtension(java.lang.String inFilePath)
Returns the extension for a given path. |
static java.lang.String |
getFileName(java.io.File inFile)
Returns the file name only from a file. |
static java.lang.String |
getFileName(java.lang.String inFilePath)
Returns the file name without the complete path. |
static java.lang.String |
getFileNameWithNoExtension(java.io.File inFile)
Returns the filename with no path and no extension. |
static java.lang.String |
getFileNameWithNoExtension(java.lang.String inFilePath)
Returns the filename with no path and no extension. |
| 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.io.File getDirectory(java.io.File inFile)
inFile - The file to be used.
public static java.lang.String getDirectory(java.lang.String inFilePath)
inFilePath - The path to the file.
public static java.lang.String getFileName(java.io.File inFile)
inFile - The file to be used.
public static java.lang.String getFileName(java.lang.String inFilePath)
inFilePath - The path to the file.
public static java.lang.String getExtension(java.io.File inFile)
inFile - The file to be used.
public static java.lang.String getExtension(java.lang.String inFilePath)
inFilePath - The file path.
public static java.lang.String getFileNameWithNoExtension(java.io.File inFile)
inFile - The file to be used.
public static java.lang.String getFileNameWithNoExtension(java.lang.String inFilePath)
inFilePath - The path to the file.
public static void deleteFileGroup(java.io.File inFile,
java.io.FileFilter filter)
inFile using filter
filter.
inFile - The directory in which files will be deleted.filter - The filter to use.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||