|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.commons.vfs.AbstractVEntry<V>
org.millscript.commons.vfs.AbstractVFolder<V>
public abstract class AbstractVFolder<V extends VVolume>
This class provides the skeletal implementation of a virtual filesystem folder,
| Constructor Summary | |
|---|---|
AbstractVFolder(V vol,
VFolder parent,
java.lang.String name)
Constructs a new virtual filesystem folder with the specified name, parent folder and volume. |
|
| Method Summary | |
|---|---|
java.lang.StringBuffer |
appendRelativePath(java.lang.StringBuffer buff)
Appends the relative path to this entry to the specified string buffer. |
java.lang.StringBuffer |
appendRelativePathOnVolume(java.lang.StringBuffer buff)
Appends the relative path to this entry, from the root folder of this entries volume, to the specified string buffer. |
java.lang.StringBuffer |
appendURI(java.lang.StringBuffer buffer)
Appends the URI of this entry to the specified string buffer. |
VVolume |
chroot()
Returns a new chroot'd volume with this virtual folder as its root. |
org.millscript.commons.alert.Alert |
decorate(org.millscript.commons.alert.Alert alert)
|
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. |
LocalFolder |
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.AbstractVEntry |
|---|
appendAbsolutePath, appendAbsolutePathOnVolume, getAbsolutePath, getAbsolutePathOnVolume, getMIMEType, getMIMETypeHandler, getName, getParent, getRelativePath, getRelativePathOnVolume, getURI, getVolume |
| 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.VFolder |
|---|
checkVEntry, checkVFile, checkVFolder, getVFile, getVFolder, listEntries, listFiles, listFolders, make |
| Methods inherited from interface org.millscript.commons.vfs.VEntry |
|---|
appendAbsolutePath, appendAbsolutePathOnVolume, exists, getAbsolutePath, getAbsolutePathOnVolume, getMIMEType, getMIMETypeHandler, getName, getParent, getRelativePath, getRelativePathOnVolume, getURI, getVolume |
| Constructor Detail |
|---|
public AbstractVFolder(V vol,
VFolder parent,
java.lang.String name)
vol - the volume this entry is held onparent - the parent folder for this foldername - the name of the folder| Method Detail |
|---|
public final java.lang.StringBuffer appendRelativePath(java.lang.StringBuffer buff)
VEntry
appendRelativePath in interface VEntrybuff - the string buffer to append the path to
VEntry.appendRelativePath(java.lang.StringBuffer)public final java.lang.StringBuffer appendRelativePathOnVolume(java.lang.StringBuffer buff)
VEntry
appendRelativePathOnVolume in interface VEntrybuff - the string buffer to append the path to
VEntry.appendRelativePathOnVolume(java.lang.StringBuffer)public final 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 final VVolume chroot()
VFolder
chroot in interface VFolderVFolder.chroot()public org.millscript.commons.alert.Alert decorate(org.millscript.commons.alert.Alert alert)
decorate in interface org.millscript.commons.alert.AlertDecoratorAlertDecorator.decorate(org.millscript.commons.alert.Alert)public final VFolder make(java.lang.String segment)
VFolder
make in interface VFoldersegment - the name for the new folder
VFolder.make(java.lang.String)public final 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 final 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 final 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 LocalFolder toLocal()
VEntry
toLocal in interface VEntrytoLocal in interface VFolderVFolder.toLocal()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public final VVolume toVolume()
VFolder
toVolume in interface VFolderVFolder.toVolume()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||