|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.virtual.plugins.context.AbstractVirtualFileHandler
org.jboss.virtual.plugins.context.AbstractURLHandler
org.jboss.virtual.plugins.context.file.LinkHandler
public class LinkHandler
A handler for link directories.
Field Summary |
---|
Fields inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
---|
cachedLastModified, log |
Constructor Summary | |
---|---|
LinkHandler(FileSystemContext context,
VirtualFileHandler parent,
URI uri,
String name,
List<LinkInfo> links)
Create a new LinkHandler. |
Method Summary | |
---|---|
VirtualFileHandler |
createChildHandler(String name)
Create a virtual file context |
protected VirtualFileHandler |
createLinkHandler(VirtualFileHandler parent,
String name,
URI linkURI)
|
protected void |
doClose()
The real close |
VirtualFileHandler |
getChild(String path)
Get a child |
List<VirtualFileHandler> |
getChildren(boolean ignoreErrors)
Get the children |
boolean |
isLeaf()
Whether it is a simple leaf of the VFS, i.e. |
boolean |
isNested()
Are we nested in some archive. |
boolean |
removeChild(String name)
Remove a child |
Methods inherited from class org.jboss.virtual.plugins.context.AbstractURLHandler |
---|
exists, getLastModified, getSize, getURL, initCacheLastModified, isHidden, openConnection, openConnection, openStream, toURI, toURL |
Methods inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
---|
checkClosed, checkParentExists, cleanup, close, decrement, delete, equals, getChildPathName, getChildVfsUrl, getLocalPathName, getLocalVFSContext, getName, getParent, getPathName, getRealURL, getReferences, getVFSContext, getVfsUrl, getVirtualFile, hasBeenModified, hashCode, increment, internalReplaceChild, isArchive, isTemporary, replaceChild, setPathName, setVfsUrl, simpleFindChild, structuredFindChild, toInternalVfsUrl, toString, toStringLocal, toVfsUrl |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LinkHandler(FileSystemContext context, VirtualFileHandler parent, URI uri, String name, List<LinkInfo> links) throws IOException, URISyntaxException
context
- the contextparent
- the parenturi
- the uriname
- the namelinks
- the links
IOException
- for an error accessing the file system
IllegalArgumentException
- for a null context, url
URISyntaxException
- if the uri cannot be parsedMethod Detail |
---|
public boolean isLeaf()
VirtualFileHandler
isLeaf
in interface VirtualFileHandler
public boolean isNested() throws IOException
VirtualFileHandler
isNested
in interface VirtualFileHandler
IOException
- for any errorpublic List<VirtualFileHandler> getChildren(boolean ignoreErrors) throws IOException
VirtualFileHandler
getChildren
in interface VirtualFileHandler
ignoreErrors
- whether to ignore errors
IOException
- for an error accessing the file systempublic VirtualFileHandler createChildHandler(String name) throws IOException
StructuredVirtualFileHandler
createChildHandler
in interface StructuredVirtualFileHandler
name
- the name
IOException
- for any error accessing the virtual file systempublic VirtualFileHandler getChild(String path) throws IOException
VirtualFileHandler
getChild
in interface VirtualFileHandler
path
- the path
null
if not found
IOException
- for an error accessing the file systempublic boolean removeChild(String name) throws IOException
VirtualFileHandler
removeChild
in interface VirtualFileHandler
name
- child name
IOException
- if an error occursprotected void doClose()
AbstractVirtualFileHandler
doClose
in class AbstractVirtualFileHandler
protected VirtualFileHandler createLinkHandler(VirtualFileHandler parent, String name, URI linkURI) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |