|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VFSContext
A virtual file context
Method Summary | |
---|---|
void |
addTempInfo(TempInfo tempInfo)
Add temp info. |
void |
cleanupTempInfo(String path)
Cleanup all temp infos under path param. |
VirtualFileHandler |
getChild(VirtualFileHandler parent,
String path)
Get a child |
List<VirtualFileHandler> |
getChildren(VirtualFileHandler parent,
boolean ignoreErrors)
Get the children |
Set<VFSContextConstraints> |
getConstraints()
Get context's constraints. |
ExceptionHandler |
getExceptionHandler()
Get the exception handler. |
TempInfo |
getFurthestParentTemp(String path)
Retrieve the furthest (outter most) temp which contains this path. |
String |
getName()
Get the name. |
Options |
getOptions()
Get options. |
VirtualFileHandler |
getRoot()
Return the root virtual file |
VirtualFileHandler |
getRootPeer()
Return the peer representing the root of this context within another context. |
URI |
getRootURI()
Get the root uri |
TempInfo |
getTempInfo(String path)
Get exact temp info match. |
Iterable<TempInfo> |
getTempInfos()
Deprecated. |
VFS |
getVFS()
Get the VFS for this context |
void |
setExceptionHandler(ExceptionHandler exceptionHandler)
Set exception handler. |
void |
visit(VirtualFileHandler handler,
VirtualFileHandlerVisitor visitor)
Visit the virtual file system |
Method Detail |
---|
Set<VFSContextConstraints> getConstraints()
String getName()
URI getRootURI()
VFS getVFS()
VirtualFileHandler getRoot() throws IOException
IOException
- for any problem accessing the VFSVirtualFileHandler getRootPeer()
Options getOptions()
List<VirtualFileHandler> getChildren(VirtualFileHandler parent, boolean ignoreErrors) throws IOException
parent
- the parentignoreErrors
- whether to ignore errors
IOException
- for any problem accessing the VFS
IllegalArgumentException
- for a null parentVirtualFileHandler getChild(VirtualFileHandler parent, String path) throws IOException
parent
- the parentpath
- the path
null
if not found
IOException
- for any problem accessing the VFS
IllegalArgumentException
- for a null parent or namevoid visit(VirtualFileHandler handler, VirtualFileHandlerVisitor visitor) throws IOException
handler
- the reference handlervisitor
- the visitor
IOException
- for any error
IllegalArgumentException
- if the handler or visitor is nullExceptionHandler getExceptionHandler()
void setExceptionHandler(ExceptionHandler exceptionHandler)
exceptionHandler
- the exception handler.void addTempInfo(TempInfo tempInfo)
tempInfo
- the temp infoTempInfo getTempInfo(String path)
path
- the path to match
Iterable<TempInfo> getTempInfos()
TempInfo getFurthestParentTemp(String path)
path
- the path to match
void cleanupTempInfo(String path)
path
- the path to cleanup
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |