public class FileService extends Object implements DirectoryService
| Constructor and Description |
|---|
FileService()
Constructor.
|
FileService(File root)
Constructor.
|
FileService(File root,
FileFilter filter)
Constructor.
|
FileService(String root)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Directory[] |
getChildren(Directory directory)
Get the children of a directory.
|
Directory |
getRoot()
Get the root directory.
|
public FileService()
public FileService(String root)
root - root of this file servicepublic FileService(File root)
root - root of this file servicepublic FileService(File root, FileFilter filter)
root - root of this file servicefilter - filter of this file servicepublic Directory getRoot()
getRoot in interface DirectoryServicepublic Directory[] getChildren(Directory directory) throws DirectoryServiceException
getChildren in interface DirectoryServicedirectory - directory to get children forDirectoryServiceExceptionCopyright © 2016. All rights reserved.