org.millscript.commons.vfs.mime
Class AbstractMIMEVVolume

java.lang.Object
  extended by org.millscript.commons.vfs.AbstractVVolume
      extended by org.millscript.commons.vfs.mime.AbstractMIMEVVolume
All Implemented Interfaces:
org.millscript.commons.alert.AlertDecorator, VVolume
Direct Known Subclasses:
ReadOnlyZipVolume

public abstract class AbstractMIMEVVolume
extends AbstractVVolume

The class provides a skeletal virtual filesystem volume, intended for easing support for different MIME types.


Constructor Summary
protected AbstractMIMEVVolume(AbstractVFile<?> parentFile)
          Constructs a new virtual volume from the specified virtual file.
 
Method Summary
protected  VFile getParentVFile()
           
 VFolder getRootVFolder()
          Returns the root VFolder for this virtual volume.
protected  LocalFile getTempBackingFile()
           
 java.net.URI getURI()
          Returns the URI for the root of this virtual filesystem volume.
protected abstract  VFolder makeRootVFolder(VFile sourceFile)
          Constructs the root folder for this volume, with the specified parent folder and returns it.
 
Methods inherited from class org.millscript.commons.vfs.AbstractVVolume
appendBaseURI, decorate, getParentVFS, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractMIMEVVolume

protected AbstractMIMEVVolume(AbstractVFile<?> parentFile)
Constructs a new virtual volume from the specified virtual file.

Parameters:
parentFile - the virtual file to make this volume from, i.e. a reference to a ZIP file.
Method Detail

getParentVFile

protected VFile getParentVFile()
Returns:
Returns the parentVFile.

getRootVFolder

public VFolder getRootVFolder()
Description copied from interface: VVolume
Returns the root VFolder for this virtual volume.

Returns:
the VFolder for the root of this volume
See Also:
VVolume.getRootVFolder()

getTempBackingFile

protected LocalFile getTempBackingFile()
Returns:
Returns the tempBackingFile.

getURI

public final java.net.URI getURI()
Description copied from interface: VVolume
Returns the URI for the root of this virtual filesystem volume.

Returns:
a URI for this volume
See Also:
VVolume.getURI()

makeRootVFolder

protected abstract VFolder makeRootVFolder(VFile sourceFile)
Constructs the root folder for this volume, with the specified parent folder and returns it.

Parameters:
sourceFile - the virtual file for the source of this volume
Returns:
the VFolder for the root of this volume


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