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 DirectoryService
public Directory[] getChildren(Directory directory) throws DirectoryServiceException
getChildren
in interface DirectoryService
directory
- directory to get children forDirectoryServiceException
Copyright © 2015. All rights reserved.