|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
H
- the handle generic type.public interface FSDriver<H>
A driver for the file system, this interface is the Service Provider Interface (SPI) part provided by CRaSH.
The driver works with handles which are opaque objects that model a path in the file system, an handle can represent a file or a directory and is considered as non modifiable from the file system perspective.
Method Summary | |
---|---|
H |
child(H handle, String name) Return the specific child of a directory handle, null should be returned if no such child exist. |
Iterable<H> |
children(H handle) Returns an iterable over the children of of a specific directory handle. |
long |
getLastModified(H handle) Return the last modified date timestamp of an handle. |
boolean |
isDir(H handle) Returns true if the handle represent a directory. |
String |
name(H handle) Returns the name of the handle. |
Iterator<InputStream> |
open(H handle) Return an iterator over the resources represented by the specified file handle. |
H |
root() Returns the root handle. |
Method Detail |
---|
H root() throws IOException
IOException
- any io exceptionString name(H handle) throws IOException
handle
- the handleIOException
- any io exceptionboolean isDir(H handle) throws IOException
handle
- the handleIOException
- any io exceptionH child(H handle, String name) throws IOException
handle
- the directory handlename
- the child nameIOException
- any io exceptionIterable<H> children(H handle) throws IOException
handle
- the directory handleIOException
- any io exceptionlong getLastModified(H handle) throws IOException
handle
- the handleIOException
- any io exceptionIterator<InputStream> open(H handle) throws IOException
handle
- the file handleIOException
- any io exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |