|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.commons.vfs.VFS
public class VFS
This class provides the entry point for obtaining a new virtual filesytem.
| Constructor Summary | |
|---|---|
VFS()
|
|
| Method Summary | |
|---|---|
VFolder |
getCurrentWorkingFolder()
Returns the virtual folder for the current working folder. |
java.nio.charset.Charset |
getDefaultCharset()
Returns the default character set this VFS will use for reading and writing file contents. |
VFS |
getParentVFS()
Returns the parent VFS, that which created this URI scheme handler. |
URISchemeHandlerFactory |
getURISchemeHandlerFactory()
Returns the current URI scheme hander factory. |
VFile |
resolveAsFile(java.net.URI uri)
Resolves the specified URI to a virtual file in a new virtual filesystem. |
VFolder |
resolveAsFolder(java.net.URI uri)
Resolves the specified URI to a virtual fole in a new virtual filesystem. |
VVolume |
resolveAsVolume(java.net.URI uri)
Resolves the specified URI to a new virtual filesystem volume. |
void |
setDefaultCharset(java.nio.charset.Charset charset)
Sets the default character set this VFS will use for reading and writing file contents. |
void |
setURISchemeHandlerFactory(URISchemeHandlerFactory f)
Sets the URI scheme handler factory that should be used for resolving URI schemes to VFS protocols. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VFS()
| Method Detail |
|---|
public VFolder getCurrentWorkingFolder()
user.dir system
property.
public java.nio.charset.Charset getDefaultCharset()
public VFS getParentVFS()
URISchemeHandler
getParentVFS in interface URISchemeHandlerURISchemeHandler.getParentVFS()public URISchemeHandlerFactory getURISchemeHandlerFactory()
public final VFile resolveAsFile(java.net.URI uri)
URISchemeHandler
resolveAsFile in interface URISchemeHandleruri - the URI of the file to get a virtual file for
URISchemeHandler.resolveAsFile(java.net.URI)public final VFolder resolveAsFolder(java.net.URI uri)
URISchemeHandler
resolveAsFolder in interface URISchemeHandleruri - the URI of the folder to get a virtual folder for
URISchemeHandler.resolveAsFolder(java.net.URI)public final VVolume resolveAsVolume(java.net.URI uri)
URISchemeHandler
resolveAsVolume in interface URISchemeHandleruri - the URI of the file to get a virtual file for
URISchemeHandler.resolveAsVolume(java.net.URI)public void setDefaultCharset(java.nio.charset.Charset charset)
charset - the default character set this VFS should usepublic void setURISchemeHandlerFactory(URISchemeHandlerFactory f)
f - the new URISchemeHandlerFactor to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||