|
||||||||||
| 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.ChrootFile
public class ChrootFile
This class implements a virtual file 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. |
boolean |
exists()
Tests to see if the entry exits. |
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. |
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. |
java.lang.String |
toString()
|
| 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 boolean exists()
VEntry
exists in interface VEntrytrue if this entry exits and false
otherwiseVEntry.exists()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 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()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 | |||||||||