|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.commons.vfs.util.AbstractChrootEntry
org.millscript.commons.vfs.util.ChrootFolder
public class ChrootFolder
This class implements a virtual folder for a Unix style chroot volume.
| Method Summary | |
|---|---|
java.lang.StringBuffer |
appendRelativePath(java.lang.StringBuffer buffer)
Appends the relative path to this entry to the specified string buffer. |
java.lang.StringBuffer |
appendURI(java.lang.StringBuffer buffer)
Appends the URI of this entry to the specified string buffer. |
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. |
ChrootFile |
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. |
ChrootFolder |
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. |
ChrootVolume |
chroot()
Returns a new chroot'd volume with this virtual folder as its root. |
boolean |
exists()
Tests to see if the entry exits. |
java.lang.String |
getMIMEType(java.lang.String fileName)
Returns the MIME type for the specified file name. |
MIMETypeHandler |
getMIMETypeHandler(java.lang.String type)
Returns a MIME type handler for the specified type. |
java.lang.String |
getName()
Returns the name of this entry in the filesystem. |
VFolder |
getParent()
Returns the parent folder for this entry. |
ChrootFile |
getVFile(java.lang.String segment)
Returns the entry for the child file with the specified name. |
ChrootFolder |
getVFolder(java.lang.String segment)
Returns the entry for the child folder with the specified name. |
ChrootVolume |
getVolume()
Returns the volume this entry is located on. |
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 entry as a local entry, which may simply be this object. |
java.lang.String |
toString()
|
VVolume |
toVolume()
Returns a new volume with this folder as it's root. |
| Methods inherited from class org.millscript.commons.vfs.util.AbstractChrootEntry |
|---|
appendAbsolutePath, appendAbsolutePathOnVolume, appendRelativePathOnVolume, getAbsolutePath, getAbsolutePathOnVolume, getRelativePath, getRelativePathOnVolume, getURI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.millscript.commons.vfs.VEntry |
|---|
appendAbsolutePath, appendAbsolutePathOnVolume, appendRelativePathOnVolume, getAbsolutePath, getAbsolutePathOnVolume, getRelativePath, getRelativePathOnVolume, getURI |
| Method Detail |
|---|
public java.lang.StringBuffer appendRelativePath(java.lang.StringBuffer buffer)
VEntry
appendRelativePath in interface VEntrybuffer - the string buffer to append the path to
VEntry.appendRelativePath(java.lang.StringBuffer)public java.lang.StringBuffer appendURI(java.lang.StringBuffer buffer)
VEntry
appendURI in interface VEntrybuffer - the string buffer to append the URI to
VEntry.appendURI(java.lang.StringBuffer)public VEntry checkVEntry(java.lang.String segment)
VFolder
checkVEntry in interface VFoldersegment - the name of the required child
VFolder.checkVEntry(java.lang.String)public ChrootFile checkVFile(java.lang.String segment)
VFolder
checkVFile in interface VFoldersegment - the name of the required child file
VFolder.checkVFile(java.lang.String)public ChrootFolder checkVFolder(java.lang.String segment)
VFolder
checkVFolder in interface VFoldersegment - the name of the required child folder
VFolder.checkVFolder(java.lang.String)public ChrootVolume chroot()
VFolder
chroot in interface VFolderVFolder.chroot()public boolean exists()
VEntry
exists in interface VEntrytrue if this entry exits and false
otherwiseVEntry.exists()public java.lang.String getMIMEType(java.lang.String fileName)
VEntry
getMIMEType in interface VEntryfileName - the file name to get a MIME type for
VEntry.getMIMEType(java.lang.String)public MIMETypeHandler getMIMETypeHandler(java.lang.String type)
VEntry
getMIMETypeHandler in interface VEntrytype - the MIME type to get a handler for
VEntry.getMIMETypeHandler(java.lang.String)public java.lang.String getName()
VEntry
getName in interface VEntryVEntry.getName()public VFolder getParent()
VEntry
getParent in interface VEntryVEntry.getParent()public ChrootFile getVFile(java.lang.String segment)
VFolder
getVFile in interface VFoldersegment - the name of the required child file
VFolder.getVFile(java.lang.String)public ChrootFolder getVFolder(java.lang.String segment)
VFolder
getVFolder in interface VFoldersegment - the name of the required child folder
VFolder.getVFolder(java.lang.String)public ChrootVolume getVolume()
VEntry
getVolume in interface VEntryVEntry.getVolume()public java.util.List<VEntry> listEntries()
VFolder
listEntries in interface VFolderVFolder.listEntries()public java.util.List<VFile> listFiles()
VFolder
listFiles in interface VFolderVFolder.listFiles()public java.util.List<VFolder> listFolders()
VFolder
listFolders in interface VFolderVFolder.listFolders()public VFolder make()
VFolder
make in interface VFolderVFolder.make()public VFolder make(java.lang.String segment)
VFolder
make in interface VFoldersegment - the name for the new folder
VFolder.make(java.lang.String)public VFile resolveAsFile(java.lang.String path)
VFolder
resolveAsFile in interface VFolderpath - the path to get a virtual file for
VFolder.resolveAsFile(java.lang.String)public VFolder resolveAsFolder(java.lang.String path)
VFolder
resolveAsFolder in interface VFolderpath - the path to get a virtual folder for
VFolder.resolveAsFolder(java.lang.String)public VVolume resolveAsVolume(java.lang.String path)
VFolder
resolveAsVolume in interface VFolderpath - the path to get a virtual volume for
VFolder.resolveAsVolume(java.lang.String)public VFolder toLocal()
VEntry
toLocal in interface VEntrytoLocal in interface VFolderVEntry.toLocal()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public VVolume toVolume()
VFolder
toVolume in interface VFolderVFolder.toVolume()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||