org.millscript.commons.vfs.mime.zip
Class ZipMIMEHandler

java.lang.Object
  extended by org.millscript.commons.vfs.mime.AbstractMIMETypeHandler
      extended by org.millscript.commons.vfs.mime.zip.ZipMIMEHandler
All Implemented Interfaces:
MIMETypeHandler

public class ZipMIMEHandler
extends AbstractMIMETypeHandler

This class provides the "application/x-zip" MIME type handler.


Constructor Summary
ZipMIMEHandler()
           
 
Method Summary
 VFile resolveAsFile(VFile file)
          Resolves the specified VFile to a virtual file in a new virtual filesystem.
 VFolder resolveAsFolder(VFile file)
          Resolves the specified VFile to a virtual folder in a new virtual filesystem.
 VVolume resolveAsVolume(VFile file)
          Resolves the specified VFile to a new virtual filesystem volume.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipMIMEHandler

public ZipMIMEHandler()
Method Detail

resolveAsFile

public VFile resolveAsFile(VFile file)
Description copied from interface: MIMETypeHandler
Resolves the specified VFile to a virtual file in a new virtual filesystem. The returned virtual file will belong to a virtual volume and possibly some virtual folders as well. This is achieved by decoding the file into a virtual file on a new volume.

Parameters:
file - the VFile to make the root volume from
Returns:
a VFile for the specified file URI
See Also:
MIMETypeHandler.resolveAsFile(org.millscript.commons.vfs.VFile)

resolveAsFolder

public VFolder resolveAsFolder(VFile file)
Description copied from interface: MIMETypeHandler
Resolves the specified VFile to a virtual folder in a new virtual filesystem. The returned virtual fiolder will belong to a virtual volume and possibly some virtual folders as well. This is achieved by decoding the file into a new volume and returning the new volumes root folder.

Parameters:
file - the VFile to make the folders root volume from
Returns:
a VFolder for the specified file
See Also:
MIMETypeHandler.resolveAsFolder(org.millscript.commons.vfs.VFile)

resolveAsVolume

public VVolume resolveAsVolume(VFile file)
Description copied from interface: MIMETypeHandler
Resolves the specified VFile to a new virtual filesystem volume. This is achieved by decoding the file as an archive, as is appropriate for this MIME type handler. The root of the virtual volume will be the root of decoded archive.

Parameters:
file - the VFile to make the root volume from
Returns:
a VVolume for the specified file
See Also:
MIMETypeHandler.resolveAsVolume(org.millscript.commons.vfs.VFile)


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