org.jboss.virtual.plugins.context.vfs
Class AssembledFileHandler

java.lang.Object
  extended by org.jboss.virtual.plugins.context.AbstractVirtualFileHandler
      extended by org.jboss.virtual.plugins.context.DelegatingHandler
          extended by org.jboss.virtual.plugins.context.vfs.AssembledFileHandler
All Implemented Interfaces:
Serializable, VirtualFileHandler

public class AssembledFileHandler
extends DelegatingHandler

The assembled file handler.

Version:
$Revision: 1.1 $
Author:
Bill Burke, Ales Justin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler
cachedLastModified, log
 
Constructor Summary
AssembledFileHandler(VFSContext context, AssembledDirectoryHandler parent, String name, VirtualFileHandler delegate)
           
 
Method Summary
 VirtualFileHandler getChild(String path)
          Get a child
 List<VirtualFileHandler> getChildren(boolean ignoreErrors)
          Get the children
 
Methods inherited from class org.jboss.virtual.plugins.context.DelegatingHandler
cleanup, close, delete, equals, exists, getDelegate, getLastModified, getRealURL, getSize, hashCode, internalReplaceChild, isArchive, isHidden, isLeaf, isNested, openStream, removeChild, setDelegate, setVfsUrl, toURI, toURL, toVfsUrl
 
Methods inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler
checkClosed, checkParentExists, decrement, doClose, getChildPathName, getChildVfsUrl, getLocalPathName, getLocalVFSContext, getName, getParent, getPathName, getReferences, getVFSContext, getVfsUrl, getVirtualFile, hasBeenModified, increment, isTemporary, replaceChild, setPathName, simpleFindChild, structuredFindChild, toInternalVfsUrl, toString, toStringLocal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssembledFileHandler

public AssembledFileHandler(VFSContext context,
                            AssembledDirectoryHandler parent,
                            String name,
                            VirtualFileHandler delegate)
                     throws IOException
Throws:
IOException
Method Detail

getChildren

public List<VirtualFileHandler> getChildren(boolean ignoreErrors)
                                     throws IOException
Description copied from interface: VirtualFileHandler
Get the children

Specified by:
getChildren in interface VirtualFileHandler
Overrides:
getChildren in class DelegatingHandler
Parameters:
ignoreErrors - whether to ignore errors
Returns:
the children
Throws:
IOException - for an error accessing the file system

getChild

public VirtualFileHandler getChild(String path)
                            throws IOException
Description copied from interface: VirtualFileHandler
Get a child

Specified by:
getChild in interface VirtualFileHandler
Overrides:
getChild in class DelegatingHandler
Parameters:
path - the path
Returns:
the child or null if not found
Throws:
IOException - for an error accessing the file system


Copyright © 2010 JBoss, A division of Red Hat, Inc. All Rights Reserved.