| java.lang.Object oscript.fs.AbstractFileSystem
All known Subclasses: oscript.fs.LocalFileSystem, oscript.fs.JarFileSystem,
AbstractFileSystem | abstract public class AbstractFileSystem (Code) | | An interface implemented by something that can resolve AbstractFile s.
author: Rob Clark (rob@ti.com) author: version: 1.17 |
Inner Class :protected static class BogusFile implements AbstractFile | |
Inner Class :public static class MountPointFile extends BogusFile | |
SEPERATOR_CHAR | final public static char SEPERATOR_CHAR(Code) | | The seperator character used for paths. The implementation of
the filesystem may translate this character into whatever is
required for the native implementation of the filesystem.
|
enableWindozeHacks | final protected static boolean enableWindozeHacks(Code) | | |
basename | public static String basename(String path)(Code) | | Given a normalized path, return basename. Ie. the last component of the
path.
|
childrenInFileSystem | abstract protected 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 |
dirname | public static String dirname(String path)(Code) | | Given a normalized path, return dirname. Ie. everything but the last
component in the path.
|
flush | abstract protected void flush() throws IOException(Code) | | Flush any pending changes within this filesystem.
|
lastModified | protected long lastModified() throws IOException(Code) | | Return the last modification time of the root of the mount point itself. This
is the same as the last modified time for the root of the filesystem.
|
mount | public static synchronized void mount(AbstractFileSystem fs, String path)(Code) | | Mount a new filesystem. A filesystem can be mounted at any
position within the virtual filesystem. A mounted filesystem
could potentially eclipse a file. If multiple filesystems
are mounted at the same point, the result is the union of all
those filesystems.
Parameters: fs - the filesystem to mount Parameters: path - the path to the location to mount (ex: "/") |
normalize | public static String normalize(String path)(Code) | | Normalize the path. This involves ensuring the path is
fully qualified (begins with "/"), and gets rid of any
extra "." and "/".
|
resolveInFileSystem | abstract protected AbstractFile resolveInFileSystem(String mountPath, String path) throws IOException(Code) | | Try to resolve the specified path. If unresolved, return null .
Note that this gets called under the synchronization of the abstract file
system, so it does not need to be re-entrant.
Parameters: mountPath - the path this fs is mounted at to resolve the requested file Parameters: path - path to file, relative to mountPath file or null |
touchMountPoint | protected static synchronized void touchMountPoint(AbstractFileSystem fs) throws IOException(Code) | | When a file is created/deleted in the topmost directory in a
mounted file system, it needs some way to cause the timestamp
on the directory(s) it is mounted into to change.
Parameters: fs - the filesystem that was modified |
|
|