public class FolderInfo extends FileInfo
| Constructor and Description |
|---|
FolderInfo(java.lang.String fileName)
Creates instance of the
FolderInfo |
FolderInfo(java.lang.String path,
boolean recursive)
Creates instance of the
FolderInfo |
FolderInfo(java.lang.String path,
java.io.FileFilter filter,
boolean recursive)
Creates instance of the
FolderInfo with specified file filter |
| Modifier and Type | Method and Description |
|---|---|
int |
getFileCount()
Returns the count of the files in this folder
|
java.util.List |
getFiles()
Returns content of this folder
|
void |
load()
Loads the contents of this folder
|
protected void |
loadFiles(FolderInfo result,
java.io.File rootFolder)
Loads the contents of the specified folder
|
getAttributes, getFileName, getLastModified, getSize, toStringpublic FolderInfo(java.lang.String fileName)
FolderInfofileName - Path to the folderpublic FolderInfo(java.lang.String path,
java.io.FileFilter filter,
boolean recursive)
throws java.lang.IllegalArgumentException
FolderInfo with specified file filterpath - Path to the folderfilter - File filterrecursive - If this value is TRUE subfolders and theirs files will be listedjava.lang.IllegalArgumentExceptionpublic FolderInfo(java.lang.String path,
boolean recursive)
FolderInfopath - Path to the folderrecursive - If this value is TRUE subfolders and theirs files will be listedprotected void loadFiles(FolderInfo result, java.io.File rootFolder)
public void load()
public int getFileCount()
public java.util.List getFiles()