|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoscript.fs.AbstractFileSystem
oscript.fs.JarFileSystem
A JarFileSystem
implements a filesystem on top of a .jar
or .zip file.
Nested Class Summary |
Nested classes inherited from class oscript.fs.AbstractFileSystem |
AbstractFileSystem.BogusFile, AbstractFileSystem.MountPointFile |
Field Summary |
Fields inherited from class oscript.fs.AbstractFileSystem |
SEPERATOR_CHAR |
Constructor Summary | |
JarFileSystem(java.io.File root)
Class Constructor. |
|
JarFileSystem(java.io.File root,
boolean autoflush)
Class Constructor. |
|
JarFileSystem(java.lang.String root)
Class Constructor. |
Method Summary | |
protected java.util.Collection |
childrenInFileSystem(java.lang.String mountPath,
java.lang.String path)
Return an iterator of children of the specified path. |
protected void |
finalize()
|
void |
flush()
If any changes have been made, flush them out to disk. |
protected AbstractFile |
resolveInFileSystem(java.lang.String mountPath,
java.lang.String path)
Try to resolve the specified path. |
Methods inherited from class oscript.fs.AbstractFileSystem |
basename, children, children, dirname, getCwd, lastModified, mount, normalize, normalize, resolve, setCwd, touchMountPoint |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JarFileSystem(java.io.File root) throws java.util.zip.ZipException, java.io.IOException
root
- the root of the local filesystempublic JarFileSystem(java.io.File root, boolean autoflush) throws java.util.zip.ZipException, java.io.IOException
root
- the root of the local filesystemautoflush
- if true
automatically flush the entire
filesystem. Note that flushing entire filesystem to disk involves
writing the entire jar file, and can be expensivepublic JarFileSystem(java.lang.String root) throws java.util.zip.ZipException, java.io.IOException
root
- the root of the local filesystemMethod Detail |
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
public void flush() throws java.io.IOException
flush
in class AbstractFileSystem
java.io.IOException
protected AbstractFile resolveInFileSystem(java.lang.String mountPath, java.lang.String path)
null
.
resolveInFileSystem
in class AbstractFileSystem
mountPath
- the path this fs is mounted at to resolve the requested filepath
- path to file
null
protected java.util.Collection childrenInFileSystem(java.lang.String mountPath, java.lang.String path) throws java.io.IOException
childrenInFileSystem
in class AbstractFileSystem
mountPath
- the path this fs is mounted at to resolve the requested filepath
- path to file, relative to mountPath
AbstractFile
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |