| java.lang.Object oscript.fs.AbstractFileSystem oscript.fs.JarFileSystem
JarFileSystem | public class JarFileSystem extends AbstractFileSystem (Code) | | A JarFileSystem implements a filesystem on top of a .jar
or .zip file.
author: Rob Clark (rob@ti.com) author: version: 1.21 |
Constructor Summary | |
public | JarFileSystem(File root) Class Constructor. | public | JarFileSystem(File root, boolean autoflush) Class Constructor.
Parameters: root - the root of the local filesystem Parameters: autoflush - if true automatically flush the entirefilesystem. | public | JarFileSystem(String root) Class Constructor. |
JarFileSystem | public JarFileSystem(File root, boolean autoflush) throws ZipException, IOException(Code) | | Class Constructor.
Parameters: root - the root of the local filesystem Parameters: autoflush - if true automatically flush the entirefilesystem. Note that flushing entire filesystem to disk involveswriting the entire jar file, and can be expensive |
childrenInFileSystem | protected synchronized Collection childrenInFileSystem(String mountPath, String path) throws IOException(Code) | | Return an iterator of children of the specified path.
Parameters: mountPath - the path this fs is mounted at to resolve the requested file Parameters: path - path to file, relative to mountPath a collection of AbstractFile |
flush | public synchronized void flush() throws IOException(Code) | | If any changes have been made, flush them out to disk.
|
resolveInFileSystem | protected AbstractFile resolveInFileSystem(String mountPath, String path)(Code) | | Try to resolve the specified path. If unresolved, return null .
Parameters: mountPath - the path this fs is mounted at to resolve the requested file Parameters: path - path to file file or null |
Fields inherited from oscript.fs.AbstractFileSystem | final public static char SEPERATOR_CHAR(Code)(Java Doc) final protected static boolean enableWindozeHacks(Code)(Java Doc)
|
|
|