|
||||||||||
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 |
cleanup()
Cleanup on cache eviction. |
void |
cleanupTempInfo(java.lang.String path)
Cleanup all temp infos under path param. |
VirtualFileHandler |
getChild(VirtualFileHandler parent,
java.lang.String path)
Get a child |
java.util.List<VirtualFileHandler> |
getChildren(VirtualFileHandler parent,
boolean ignoreErrors)
Get the children |
java.util.Set<VFSContextConstraints> |
getConstraints()
Get context's constraints. |
ExceptionHandler |
getExceptionHandler()
Get the exception handler. |
TempInfo |
getFurthestParentTemp(java.lang.String path)
Retrieve the furthest (outter most) temp which contains this path. |
java.lang.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. |
java.net.URI |
getRootURI()
Get the root uri |
TempInfo |
getTempInfo(java.lang.String path)
Get exact temp info match. |
java.lang.Iterable<TempInfo> |
getTempInfos()
Deprecated. |
TempStore |
getTempStore()
Get temp store. |
VFS |
getVFS()
Get the VFS for this context |
void |
setExceptionHandler(ExceptionHandler exceptionHandler)
Set exception handler. |
void |
setTempStore(TempStore store)
Set temp store. |
void |
visit(VirtualFileHandler handler,
VirtualFileHandlerVisitor visitor)
Visit the virtual file system |
Method Detail |
---|
java.util.Set<VFSContextConstraints> getConstraints()
java.lang.String getName()
java.net.URI getRootURI()
VFS getVFS()
VirtualFileHandler getRoot() throws java.io.IOException
java.io.IOException
- for any problem accessing the VFSVirtualFileHandler getRootPeer()
Options getOptions()
java.util.List<VirtualFileHandler> getChildren(VirtualFileHandler parent, boolean ignoreErrors) throws java.io.IOException
parent
- the parentignoreErrors
- whether to ignore errors
java.io.IOException
- for any problem accessing the VFS
java.lang.IllegalArgumentException
- for a null parentVirtualFileHandler getChild(VirtualFileHandler parent, java.lang.String path) throws java.io.IOException
parent
- the parentpath
- the path
null
if not found
java.io.IOException
- for any problem accessing the VFS
java.lang.IllegalArgumentException
- for a null parent or namevoid visit(VirtualFileHandler handler, VirtualFileHandlerVisitor visitor) throws java.io.IOException
handler
- the reference handlervisitor
- the visitor
java.io.IOException
- for any error
java.lang.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(java.lang.String path)
path
- the path to match
java.lang.Iterable<TempInfo> getTempInfos()
TempInfo getFurthestParentTemp(java.lang.String path)
path
- the path to match
void cleanupTempInfo(java.lang.String path)
path
- the path to cleanupvoid setTempStore(TempStore store)
store
- the storeTempStore getTempStore()
void cleanup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |