org.crsh.vfs.spi
Class AbstractFSDriver<H>

java.lang.Object
  extended by 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>


Constructor Summary
AbstractFSDriver()
           
 
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
 
Methods inherited from interface org.crsh.vfs.spi.FSDriver
children, getLastModified, isDir, name, open, root
 

Constructor Detail

AbstractFSDriver

public AbstractFSDriver()
Method Detail

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 handle
name - the child name
Returns:
the child or null
Throws:
IOException - any io exception


Copyright © 2015 eXo Platform SAS. All Rights Reserved.