|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VFolder
This interface describes a folder in the virutal filesystem.
| Method Summary | |
|---|---|
VEntry |
checkVEntry(java.lang.String segment)
Returns the entry for the child with the specified name, but only if it exists and throws an exception otherwise. |
VFile |
checkVFile(java.lang.String segment)
Returns the entry for the child file with the specified name, but only if it exists and throws an exception otherwise. |
VFolder |
checkVFolder(java.lang.String segment)
Returns the entry for the child folder with the specified name, but only if it exists and throws an exception otherwise. |
VVolume |
chroot()
Returns a new chroot'd volume with this virtual folder as its root. |
VFile |
getVFile(java.lang.String segment)
Returns the entry for the child file with the specified name. |
VFolder |
getVFolder(java.lang.String segment)
Returns the entry for the child folder with the specified name. |
java.util.List<VEntry> |
listEntries()
Returns a list of all the child entries in this folder. |
java.util.List<VFile> |
listFiles()
Returns a list of all the child files in this folder. |
java.util.List<VFolder> |
listFolders()
Returns a list of all the child folders in this folder. |
VFolder |
make()
Makes this folder in the volume. |
VFolder |
make(java.lang.String segment)
Makes the specified folder in the volume, as a child of the current folder. |
VFile |
resolveAsFile(java.lang.String path)
Resolves the specified path to a virtual file in this folder. |
VFolder |
resolveAsFolder(java.lang.String path)
Resolves the specified path to a virtual folder in this folder. |
VVolume |
resolveAsVolume(java.lang.String path)
Resolves the specified path to a new virtual volume, with its root at the specified resolved path. |
VFolder |
toLocal()
Returns this virtual folder as a local folder, which may simply be this object. |
VVolume |
toVolume()
Returns a new volume with this folder as it's root. |
| Methods inherited from interface org.millscript.commons.vfs.VEntry |
|---|
appendAbsolutePath, appendAbsolutePathOnVolume, appendRelativePath, appendRelativePathOnVolume, appendURI, exists, getAbsolutePath, getAbsolutePathOnVolume, getMIMEType, getMIMETypeHandler, getName, getParent, getRelativePath, getRelativePathOnVolume, getURI, getVolume |
| Method Detail |
|---|
VEntry checkVEntry(java.lang.String segment)
segment - the name of the required child
VFile checkVFile(java.lang.String segment)
segment - the name of the required child file
VFolder checkVFolder(java.lang.String segment)
segment - the name of the required child folder
VVolume chroot()
VFile getVFile(java.lang.String segment)
segment - the name of the required child file
VFolder getVFolder(java.lang.String segment)
segment - the name of the required child folder
java.util.List<VEntry> listEntries()
java.util.List<VFile> listFiles()
java.util.List<VFolder> listFolders()
VFolder make()
VFolder make(java.lang.String segment)
segment - the name for the new folder
VFile resolveAsFile(java.lang.String path)
path - the path to get a virtual file for
VFolder resolveAsFolder(java.lang.String path)
path - the path to get a virtual folder for
VVolume resolveAsVolume(java.lang.String path)
path - the path to get a virtual volume for
VFolder toLocal()
toLocal in interface VEntryVVolume toVolume()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||