org.crsh.vfs.spi
Class AbstractFSDriver<H>
java.lang.Object
org.crsh.vfs.spi.AbstractFSDriver<H>
- All Implemented Interfaces:
- FSDriver<H>
- Direct Known Subclasses:
- FileDriver, RAMDriver, ServletContextDriver, URLDriver
public abstract class AbstractFSDriver<H>
- extends Object
- implements FSDriver<H>
Method Summary |
H |
child(H handle,
String name)
A simple implementation that iterates over the children to return the one specified
by the name argument. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractFSDriver
public AbstractFSDriver()
child
public H child(H handle,
String name)
throws IOException
- A simple implementation that iterates over the children to return the one specified
by the
name
argument. Subclasses can override this method to provide
a more efficient implementation.
- Specified by:
child
in interface FSDriver<H>
- Parameters:
handle
- the directory handlename
- the child name
- Returns:
- the child or null
- Throws:
IOException
- any io exception
Copyright © 2015 eXo Platform SAS. All Rights Reserved.