org.crsh.vfs.spi.url
Class URLDriver

java.lang.Object
  extended by org.crsh.vfs.spi.AbstractFSDriver<Node>
      extended by org.crsh.vfs.spi.url.URLDriver
All Implemented Interfaces:
FSDriver<Node>

public class URLDriver
extends AbstractFSDriver<Node>

Author:
Julien Viet

Field Summary
private  Node.Dir root
          .
 
Constructor Summary
URLDriver()
           
 
Method Summary
 Iterable<Node> children(Node handle)
           
 long getLastModified(Node handle)
           
 boolean isDir(Node handle)
           
 void merge(ClassLoader loader)
           
 void merge(URL url)
           
 String name(Node handle)
           
 InputStream open(Node 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

root

private final Node.Dir root
.

Constructor Detail

URLDriver

public URLDriver()
Method Detail

merge

public void merge(ClassLoader loader)
           throws IOException,
                  URISyntaxException
Throws:
IOException
URISyntaxException

merge

public void 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
Throws:
IOException

isDir

public boolean isDir(Node handle)
              throws IOException
Throws:
IOException

children

public Iterable<Node> children(Node handle)
                        throws IOException
Throws:
IOException

getLastModified

public long getLastModified(Node handle)
                     throws IOException
Throws:
IOException

open

public InputStream open(Node handle)
                 throws IOException
Throws:
IOException


Copyright © 2014 eXo Platform SAS. All Rights Reserved.