|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.vfs.spi.AbstractFSDriver<Node> org.crsh.vfs.spi.url.URLDriver
public class URLDriver
Field Summary | |
---|---|
private Node |
root
. |
Constructor Summary | |
---|---|
URLDriver()
|
Method Summary | |
---|---|
Iterable<Node> |
children(Node handle)
Returns an iterable over the children of of a specific directory handle. |
long |
getLastModified(Node handle)
Return the last modified date timestamp of an handle. |
boolean |
isDir(Node handle)
Returns true if the handle represent a directory. |
URLDriver |
merge(ClassLoader loader)
|
URLDriver |
merge(URL url)
|
String |
name(Node handle)
Returns the name of the handle. |
Iterator<InputStream> |
open(Node handle)
Return an iterator over the resources represented by the specified file handle. |
Node |
root()
Returns the root handle. |
Methods inherited from class org.crsh.vfs.spi.AbstractFSDriver |
---|
child |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Node root
Constructor Detail |
---|
public URLDriver()
Method Detail |
---|
public URLDriver merge(ClassLoader loader) throws IOException, URISyntaxException
IOException
URISyntaxException
public URLDriver merge(URL url) throws IOException, URISyntaxException
IOException
URISyntaxException
public Node root() throws IOException
FSDriver
IOException
- any io exceptionpublic String name(Node handle) throws IOException
FSDriver
handle
- the handle
IOException
- any io exceptionpublic boolean isDir(Node handle) throws IOException
FSDriver
handle
- the handle
IOException
- any io exceptionpublic Iterable<Node> children(Node handle) throws IOException
FSDriver
handle
- the directory handle
IOException
- any io exceptionpublic long getLastModified(Node handle) throws IOException
FSDriver
handle
- the handle
IOException
- any io exceptionpublic Iterator<InputStream> open(Node handle) throws IOException
FSDriver
handle
- the file handle
IOException
- any io exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |