org.crsh.vfs.spi.url
Class URLDriver
java.lang.Object
org.crsh.vfs.spi.AbstractFSDriver<Node>
org.crsh.vfs.spi.url.URLDriver
- All Implemented Interfaces:
- FSDriver<Node>
-
public class URLDriver
- extends AbstractFSDriver<Node>
-
- Author:
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
root
private final Node root
-
.
URLDriver
public URLDriver()
merge
public URLDriver merge(ClassLoader loader)
throws IOException,
URISyntaxException
-
- Throws:
IOException
URISyntaxException
merge
public URLDriver merge(URL url)
throws IOException,
URISyntaxException
-
- Throws:
IOException
URISyntaxException
root
public Node root()
throws IOException
- Description copied from interface:
FSDriver
-
Returns the root handle.
-
- Returns:
- the root handle
- Throws:
IOException
- any io exception
name
public String name(Node handle)
throws IOException
- Description copied from interface:
FSDriver
-
Returns the name of the handle.
-
- Parameters:
handle
- the handle
- Returns:
- the handle name
- Throws:
IOException
- any io exception
isDir
public boolean isDir(Node handle)
throws IOException
- Description copied from interface:
FSDriver
-
Returns true if the handle represent a directory.
-
- Parameters:
handle
- the handle
- Returns:
- true if the handle is a directory, false otherwise
- Throws:
IOException
- any io exception
children
public Iterable<Node> children(Node handle)
throws IOException
- Description copied from interface:
FSDriver
-
Returns an iterable over the children of of a specific directory handle.
-
- Parameters:
handle
- the directory handle
- Returns:
- the children as an iterable
- Throws:
IOException
- any io exception
getLastModified
public long getLastModified(Node handle)
throws IOException
- Description copied from interface:
FSDriver
-
Return the last modified date timestamp of an handle.
-
- Parameters:
handle
- the handle
- Returns:
- the last modified timestamp
- Throws:
IOException
- any io exception
open
public Iterator<InputStream> open(Node handle)
throws IOException
- Description copied from interface:
FSDriver
-
Return an iterator over the resources represented by the specified file handle.
-
- Parameters:
handle
- the file handle
- Returns:
- the iterator
- Throws:
IOException
- any io exception
Copyright © 2015 eXo Platform SAS. All Rights Reserved.