|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.commons.vfs.AbstractVEntry<V>
public abstract class AbstractVEntry<V extends VVolume>
This class provides the skeletal implementation of a virtual filesystem entry,
| Constructor Summary | |
|---|---|
protected |
AbstractVEntry(V vol,
VFolder parent,
java.lang.String name)
Constructs a new virtual filesystem entry with the specified name, parent folder and volume. |
| Method Summary | |
|---|---|
java.lang.StringBuffer |
appendAbsolutePath(java.lang.StringBuffer buffer)
Appends the absolute path to this entry to the specified string buffer. |
java.lang.StringBuffer |
appendAbsolutePathOnVolume(java.lang.StringBuffer buffer)
Appends the absolute path to this entry, from the root folder of this entries volume, to the specified string buffer. |
java.lang.String |
getAbsolutePath()
Returns the absolute path to this entry. |
java.lang.String |
getAbsolutePathOnVolume()
Returns the absolute path to this entry, on this entries volume. |
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. |
java.lang.String |
getRelativePath()
Returns the relative path to this entry. |
java.lang.String |
getRelativePathOnVolume()
Returns the relative path to this entry, on this entries volume. |
java.net.URI |
getURI()
Returns the URI for this virtual filesystem entry. |
V |
getVolume()
Returns the volume this entry is located on. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.millscript.commons.vfs.VEntry |
|---|
appendRelativePath, appendRelativePathOnVolume, appendURI, exists, toLocal |
| Constructor Detail |
|---|
protected AbstractVEntry(V vol,
VFolder parent,
java.lang.String name)
vol - the volume this entry is held onparent - the parent folder for this entryname - the name of the entry| Method Detail |
|---|
public final java.lang.StringBuffer appendAbsolutePath(java.lang.StringBuffer buffer)
VEntry
appendAbsolutePath in interface VEntrybuffer - the string buffer to append the path to
VEntry.appendAbsolutePath(java.lang.StringBuffer)public final java.lang.StringBuffer appendAbsolutePathOnVolume(java.lang.StringBuffer buffer)
VEntry
appendAbsolutePathOnVolume in interface VEntrybuffer - the string buffer to append the path to
VEntry.appendAbsolutePathOnVolume(java.lang.StringBuffer)public final java.lang.String getAbsolutePath()
VEntry
getAbsolutePath in interface VEntryVEntry.getAbsolutePath()public final java.lang.String getAbsolutePathOnVolume()
VEntry
getAbsolutePathOnVolume in interface VEntryVEntry.getAbsolutePathOnVolume()public final 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 final 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 final java.lang.String getName()
VEntry
getName in interface VEntryVEntry.getName()public final java.lang.String getRelativePath()
VEntry
getRelativePath in interface VEntryVEntry.getRelativePath()public final java.lang.String getRelativePathOnVolume()
VEntry
getRelativePathOnVolume in interface VEntryVEntry.getRelativePathOnVolume()public final VFolder getParent()
VEntry
getParent in interface VEntryVEntry.getParent()public final java.net.URI getURI()
VEntry
getURI in interface VEntryVEntry.getURI()public final V getVolume()
VEntry
getVolume in interface VEntryVEntry.getVolume()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||