public class FileDriver extends AbstractFSDriver<File>
| Constructor and Description |
|---|
FileDriver(File root)
Create a new file driver.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<File> |
children(File handle) |
long |
getLastModified(File handle) |
boolean |
isDir(File handle) |
String |
name(File handle) |
Iterator<InputStream> |
open(File handle) |
File |
root()
Returns the root handle.
|
childpublic FileDriver(File root) throws NullPointerException
root - the rootNullPointerException - if the root argument is nullpublic File root() throws IOException
FSDriverIOException - any io exceptionpublic String name(File handle) throws IOException
IOExceptionpublic boolean isDir(File handle) throws IOException
IOExceptionpublic Iterable<File> children(File handle) throws IOException
IOExceptionpublic long getLastModified(File handle) throws IOException
IOExceptionpublic Iterator<InputStream> open(File handle) throws IOException
IOExceptionCopyright © 2014 eXo Platform SAS. All Rights Reserved.