|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.util.filesystem.FileSystemUtil
public final class FileSystemUtil
This Service is used to manipulate Files and Directories in the File System.
| Method Summary | |
|---|---|
static List<File> |
getFiles(String strRoot,
String strDirectoryRelativePath)
Returns the files of a directory, alphabetically ordered. |
static String |
getMIMEType(String strFilename)
Return the mimetype of the file depending of his extension and the mime.types file |
static List<File> |
getSubDirectories(String strRoot,
String strDirectoryRelativePath)
Returns the sub-directories of a directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static List<File> getSubDirectories(String strRoot,
String strDirectoryRelativePath)
throws DirectoryNotFoundException
strRoot - the root directory.strDirectoryRelativePath - the parent directory.
DirectoryNotFoundException - if the directory does not exist.
public static List<File> getFiles(String strRoot,
String strDirectoryRelativePath)
throws DirectoryNotFoundException
strRoot - The root directorystrDirectoryRelativePath - The directory's path relative to the root directory.
DirectoryNotFoundException - if the directory does not exist.public static String getMIMEType(String strFilename)
strFilename - the file name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||