spin.demo.complex
Class FileService
java.lang.Objectspin.demo.complex.FileService
- DirectoryService
public class FileService
extends java.lang.Object
implements DirectoryService
Implementation of a file service.
Directory[] | getChildren(Directory directory)- Get the children of a directory.
|
Directory | getRoot()- Get the root directory.
|
FileService
public FileService()
Constructor.
FileService
public FileService(File root)
Constructor.
root - root of this file service
FileService
public FileService(File root,
FileFilter filter) Constructor.
root - root of this file servicefilter - filter of this file service
FileService
public FileService(String root)
Constructor.
root - root of this file service
getChildren
public Directory[] getChildren(Directory directory)
throws DirectoryServiceException Get the children of a directory.
directory - directory to get children for
getRoot
public Directory getRoot()
Get the root directory.