public class URLDriver extends AbstractFSDriver<Node>
Constructor and Description |
---|
URLDriver() |
Modifier and Type | Method and Description |
---|---|
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.
|
child
public URLDriver()
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 handleIOException
- any io exceptionpublic boolean isDir(Node handle) throws IOException
FSDriver
handle
- the handleIOException
- any io exceptionpublic Iterable<Node> children(Node handle) throws IOException
FSDriver
handle
- the directory handleIOException
- any io exceptionpublic long getLastModified(Node handle) throws IOException
FSDriver
handle
- the handleIOException
- any io exceptionpublic Iterator<InputStream> open(Node handle) throws IOException
FSDriver
handle
- the file handleIOException
- any io exceptionCopyright © 2015 eXo Platform SAS. All Rights Reserved.