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)  ClassLoader loader
          .
(package private)  Handle root
          .
 
Constructor Summary
JarURLDriver(ClassLoader loader, JarURLConnection conn)
           
 
Method Summary
 Iterable<Handle> children(Handle handle)
           
private static Handle get(JarURLDriver driver, Map<String,Handle> handles, String path)
           
 long getLastModified(Handle handle)
           
 boolean isDir(Handle handle)
           
 String name(Handle handle)
           
 InputStream open(Handle handle)
           
 Handle 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

loader

final ClassLoader loader
.


root

final Handle root
.


jarURL

final URL jarURL
.

Constructor Detail

JarURLDriver

public JarURLDriver(ClassLoader loader,
                    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

getLastModified

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

open

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


Copyright © 2012 eXo Platform SAS. All Rights Reserved.