org.crsh.vfs.spi.mount
Class MountDriver<H>

java.lang.Object
  extended by org.crsh.vfs.spi.AbstractFSDriver<H>
      extended by org.crsh.vfs.spi.mount.MountDriver<H>
All Implemented Interfaces:
FSDriver<H>

public class MountDriver<H>
extends AbstractFSDriver<H>

The mount driver mounts path of a driver.

Version:
$Revision$
Author:
Julien Viet

Field Summary
private  FSDriver<H> driver
          .
private  Path path
          .
 
Constructor Summary
MountDriver(Path path, FSDriver<H> driver)
           
 
Method Summary
 Iterable<H> children(H handle)
           
 boolean isDir(H handle)
           
 String name(H handle)
           
 H root()
          Returns the root handle.
 URL toURL(H 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

path

private final Path path
.


driver

private final FSDriver<H> driver
.

Constructor Detail

MountDriver

public MountDriver(Path path,
                   FSDriver<H> driver)
Method Detail

root

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

isDir

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

children

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

toURL

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


Copyright © 2012 eXo Platform SAS. All Rights Reserved.