org.millscript.commons.vfs.util
Class AbstractChrootEntry

java.lang.Object
  extended by org.millscript.commons.vfs.util.AbstractChrootEntry
All Implemented Interfaces:
VEntry
Direct Known Subclasses:
ChrootFile, ChrootFolder

public abstract class AbstractChrootEntry
extends java.lang.Object
implements VEntry

This class provides a base for the implementation of a chroot'd virtual filesystem entry.


Constructor Summary
AbstractChrootEntry()
           
 
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 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.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 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.
 
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, appendURI, exists, getMIMEType, getMIMETypeHandler, getName, getParent, getVolume, toLocal
 

Constructor Detail

AbstractChrootEntry

public AbstractChrootEntry()
Method Detail

appendAbsolutePath

public final java.lang.StringBuffer appendAbsolutePath(java.lang.StringBuffer buffer)
Description copied from interface: VEntry
Appends the absolute path to this entry to the specified string buffer. The path will be absolute path from the root volume.

Specified by:
appendAbsolutePath in interface VEntry
Parameters:
buffer - the string buffer to append the path to
Returns:
the specified StringBuffer with this entries path appended to it
See Also:
VEntry.appendAbsolutePath(java.lang.StringBuffer)

appendAbsolutePathOnVolume

public final java.lang.StringBuffer appendAbsolutePathOnVolume(java.lang.StringBuffer buffer)
Description copied from interface: VEntry
Appends the absolute path to this entry, from the root folder of this entries volume, to the specified string buffer. The path will be absolute from the volume this entry belongs to.

Specified by:
appendAbsolutePathOnVolume in interface VEntry
Parameters:
buffer - the string buffer to append the path to
Returns:
the specified StringBuffer with this entries path appended to it
See Also:
VEntry.appendAbsolutePathOnVolume(java.lang.StringBuffer)

appendRelativePathOnVolume

public final java.lang.StringBuffer appendRelativePathOnVolume(java.lang.StringBuffer buffer)
Description copied from interface: VEntry
Appends the relative path to this entry, from the root folder of this entries volume, to the specified string buffer. The path will be relative from the volume this entry belongs to.

Specified by:
appendRelativePathOnVolume in interface VEntry
Parameters:
buffer - the string buffer to append the path to
Returns:
the specified StringBuffer with this entries path appended to it
See Also:
VEntry.appendRelativePathOnVolume(java.lang.StringBuffer)

getAbsolutePath

public final java.lang.String getAbsolutePath()
Description copied from interface: VEntry
Returns the absolute path to this entry.

Specified by:
getAbsolutePath in interface VEntry
Returns:
the absolute path string for this entry
See Also:
VEntry.getAbsolutePath()

getAbsolutePathOnVolume

public final java.lang.String getAbsolutePathOnVolume()
Description copied from interface: VEntry
Returns the absolute path to this entry, on this entries volume.

Specified by:
getAbsolutePathOnVolume in interface VEntry
Returns:
the absolute path string for this entry
See Also:
VEntry.getAbsolutePathOnVolume()

getRelativePath

public final java.lang.String getRelativePath()
Description copied from interface: VEntry
Returns the relative path to this entry.

Specified by:
getRelativePath in interface VEntry
Returns:
the relative path string for this entry
See Also:
VEntry.getRelativePath()

getRelativePathOnVolume

public final java.lang.String getRelativePathOnVolume()
Description copied from interface: VEntry
Returns the relative path to this entry, on this entries volume.

Specified by:
getRelativePathOnVolume in interface VEntry
Returns:
the relative path string for this entry
See Also:
VEntry.getRelativePathOnVolume()

getURI

public final java.net.URI getURI()
Description copied from interface: VEntry
Returns the URI for this virtual filesystem entry.

Specified by:
getURI in interface VEntry
Returns:
a URI for this entry
See Also:
VEntry.getURI()


Copyright © 2005-2007 Open World Ltd. All Rights Reserved.