|
|||||||||
| Home >> All >> javatools >> [ io overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javatools.io
Class FileUtils

java.lang.Objectjavatools.io.FileUtils
- public class FileUtils
- extends java.lang.Object
Contains a set of function useful for files.
- Version:
- 0.0.1
| 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 |
FileUtils
public FileUtils()
- Creates new FileUtils
| Method Detail |
getDirectory
public static java.io.File getDirectory(java.io.File inFile)
- Returns the container directory for this file.
getDirectory
public static java.lang.String getDirectory(java.lang.String inFilePath)
- Returns the containing directory of a file.
getFileName
public static java.lang.String getFileName(java.io.File inFile)
- Returns the file name only from a file.
getFileName
public static java.lang.String getFileName(java.lang.String inFilePath)
- Returns the file name without the complete path.
getExtension
public static java.lang.String getExtension(java.io.File inFile)
- Returns the extension (the one after the dot...) for a file.
getExtension
public static java.lang.String getExtension(java.lang.String inFilePath)
- Returns the extension for a given path.
getFileNameWithNoExtension
public static java.lang.String getFileNameWithNoExtension(java.io.File inFile)
- Returns the filename with no path and no extension.
getFileNameWithNoExtension
public static java.lang.String getFileNameWithNoExtension(java.lang.String inFilePath)
- Returns the filename with no path and no extension.
deleteFileGroup
public static void deleteFileGroup(java.io.File inFile, java.io.FileFilter filter)
- Deletes all the files contained in directory
inFileusing filterfilter.
|
|||||||||
| Home >> All >> javatools >> [ io overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
javatools.io.FileUtils