|
||||||||||
| 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 exception
String name(H handle)
throws IOException
handle - the handle
IOException - any io exception
boolean isDir(H handle)
throws IOException
handle - the handle
IOException - any io exception
H child(H handle,
String name)
throws IOException
handle - the directory handlename - the child name
IOException - any io exception
Iterable<H> children(H handle)
throws IOException
handle - the directory handle
IOException - any io exception
long getLastModified(H handle)
throws IOException
handle - the handle
IOException - any io exception
Iterator<InputStream> open(H handle)
throws IOException
handle - the file handle
IOException - any io exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||