org.crsh.vfs.spi.jarurl
Class JarURLDriver

java.lang.Object
  extended by org.crsh.vfs.spi.AbstractFSDriver<Handle>
      extended by org.crsh.vfs.spi.jarurl.JarURLDriver
All Implemented Interfaces:
FSDriver<Handle>

public class JarURLDriver
extends AbstractFSDriver<Handle>

Version:
$Revision$
Author:
Julien Viet

Field Summary
(package private)  URL jarURL
          .
(package private)  Handle root
          .
 
Constructor Summary
JarURLDriver(JarURLConnection conn)
           
 
Method Summary
 Iterable<Handle> children(Handle handle)
           
private static Handle get(JarURLDriver driver, Map<String,Handle> handles, String path)
           
 boolean isDir(Handle handle)
           
 String name(Handle handle)
           
 Handle root()
          Returns the root handle.
 URL toURL(Handle 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

final Handle root
.


jarURL

final URL jarURL
.

Constructor Detail

JarURLDriver

public JarURLDriver(JarURLConnection conn)
             throws IOException
Throws:
IOException
Method Detail

get

private static Handle get(JarURLDriver driver,
                          Map<String,Handle> handles,
                          String path)

root

public Handle 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(Handle handle)
            throws IOException
Throws:
IOException

isDir

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

children

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

toURL

public URL toURL(Handle handle)
          throws IOException
Throws:
IOException


Copyright © 2012 eXo Platform SAS. All Rights Reserved.