|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.commons.vfs.util.StandardConsoleFile
public class StandardConsoleFile
The standard system console as a virtual file. I'm not sure how useful this really is, or how technically correct.
| Constructor Summary | |
|---|---|
StandardConsoleFile()
|
|
| 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.StringBuffer |
appendRelativePath(java.lang.StringBuffer buffer)
Appends the relative path to this entry to the specified string buffer. |
java.lang.StringBuffer |
appendRelativePathOnVolume(java.lang.StringBuffer buffer)
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. |
boolean |
exists()
Tests to see if the entry exits. |
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.io.OutputStream |
getAppendOutputStream()
Returns an output stream for appending to the existing file contents. |
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.InputStream |
getInputStream()
Returns an input stream for reading the file contents. |
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. |
java.io.OutputStream |
getOutputStream()
Returns an ouptut stream for writing the file contents. |
VFolder |
getParent()
Returns the parent folder for this entry. |
java.io.Reader |
getReader()
Returns a reader for reading the file contents. |
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. |
VVolume |
getVolume()
Returns the volume this entry is located on. |
java.io.Writer |
getWriter()
Returns a writer for writing the file contents. |
VFile |
toLocal()
Returns this virtual entry as a local entry, which may simply be this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandardConsoleFile()
| Method Detail |
|---|
public 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 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 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 appendRelativePathOnVolume(java.lang.StringBuffer buffer)
VEntry
appendRelativePathOnVolume in interface VEntrybuffer - the string buffer to append the path to
VEntry.appendRelativePathOnVolume(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 boolean exists()
VEntry
exists in interface VEntrytrue if this entry exits and false
otherwiseVEntry.exists()public java.lang.String getAbsolutePath()
VEntry
getAbsolutePath in interface VEntryVEntry.getAbsolutePath()public java.lang.String getAbsolutePathOnVolume()
VEntry
getAbsolutePathOnVolume in interface VEntryVEntry.getAbsolutePathOnVolume()public java.io.OutputStream getAppendOutputStream()
VFile
getAppendOutputStream in interface VFileVFile.getAppendOutputStream()public java.io.Writer getAppendWriter()
VFile
getAppendWriter in interface VFileVFile.getAppendWriter()public java.lang.String getContentMIMEType()
VFile
getContentMIMEType in interface VFileVFile.getContentMIMEType()public java.io.InputStream getInputStream()
VFile
getInputStream in interface VFileVFile.getInputStream()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 java.io.OutputStream getOutputStream()
VFile
getOutputStream in interface VFileVFile.getOutputStream()public VFolder getParent()
VEntry
getParent in interface VEntryVEntry.getParent()public java.io.Reader getReader()
VFile
getReader in interface VFileVFile.getReader()public java.lang.String getRelativePath()
VEntry
getRelativePath in interface VEntryVEntry.getRelativePath()public java.lang.String getRelativePathOnVolume()
VEntry
getRelativePathOnVolume in interface VEntryVEntry.getRelativePathOnVolume()public java.net.URI getURI()
VEntry
getURI in interface VEntryVEntry.getURI()public VVolume getVolume()
VEntry
getVolume in interface VEntryVEntry.getVolume()public java.io.Writer getWriter()
VFile
getWriter in interface VFileVFile.getWriter()public VFile toLocal()
VEntry
toLocal in interface VEntrytoLocal in interface VFileVEntry.toLocal()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||