| java.lang.Object org.jpublish.util.vfs.VFSFile
VFSFile | public class VFSFile (Code) | | A virutal file in a virtual file system. JPublish provides a virtual
file system as a means for navigating through content hierarchies.
author: Anthony Eden since: 1.3 |
VFSFile | public VFSFile(String name, VFSFile parent, boolean directoryFlag, VFSProvider provider)(Code) | | Construct a new VFSFile with the given name and parent.
Parameters: name - The file name Parameters: parent - The file parent Parameters: directoryFlag - Set to true if this virtual file is a directory |
getChildren | public List getChildren()(Code) | | Get a List of all children.
All children |
getName | public String getName()(Code) | | Get the file name.
The file name |
getParent | public VFSFile getParent()(Code) | | Get the file's parent directory. This method may return null if the
file is the root.
The virtual file's parent directory |
getPathIterator | public Iterator getPathIterator()(Code) | | Get an Iterator which provides a means for iterating through
each path part in the file's path.
The path Iterator |
getProvider | public VFSProvider getProvider()(Code) | | Get the Virtual File System provider.
The VFSProvider |
isDirectory | public boolean isDirectory()(Code) | | Return true if this virutal file represents a directory.
True if this virtual file is a directory |
toPathString | public String toPathString()(Code) | | Return a String representation of the file which is the full path
for the file.
The path String |
toString | public String toString()(Code) | | Return a String representation of the virtual file.
A String |
|
|