|
||||||||||
| 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.AbstractVFile<V>
public abstract class AbstractVFile<V extends VVolume>
This class provides the skeletal implementation of a virtual filesystem file,
| Constructor Summary | |
|---|---|
AbstractVFile(V vol,
VFolder parent,
java.lang.String name)
Constructs a new virtual filesystem file 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. |
org.millscript.commons.alert.Alert |
decorate(org.millscript.commons.alert.Alert alert)
|
java.io.Writer |
getAppendWriter()
Returns a writer for appending to the existing file contents. |
java.lang.String |
getContentMIMEType()
Returns the MIME type for the contents of this file. |
java.io.Reader |
getReader()
Returns a reader for reading the file contents. |
java.io.Writer |
getWriter()
Returns a writer for writing the file contents. |
LocalFile |
toLocal()
Returns this virtual entry as a local entry, which may simply be this object. |
java.lang.String |
toString()
|
| 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.VFile |
|---|
getAppendOutputStream, getInputStream, getOutputStream |
| 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 AbstractVFile(V vol,
VFolder parent,
java.lang.String name)
vol - the volume this entry is held onparent - the parent folder for this filename - the name of the file| 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 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 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 java.io.Writer getAppendWriter()
VFile
getAppendWriter in interface VFileVFile.getAppendWriter()public java.lang.String getContentMIMEType()
VFile
getContentMIMEType in interface VFileVFile.getContentMIMEType()public final java.io.Reader getReader()
VFile
getReader in interface VFileVFile.getReader()public final java.io.Writer getWriter()
VFile
getWriter in interface VFileVFile.getWriter()public LocalFile toLocal()
VEntry
toLocal in interface VEntrytoLocal in interface VFileVFile.toLocal()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||