org.crsh.vfs.spi.mount
Class MountDriver<H>
java.lang.Object
org.crsh.vfs.spi.AbstractFSDriver<H>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
path
private final Path path
- .
driver
private final FSDriver<H> driver
- .
MountDriver
public MountDriver(Path path,
FSDriver<H> driver)
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.