org.apache.avalon.excalibur.vfs
Class ZipVFileAccessor

java.lang.Object
  |
  +--org.apache.avalon.excalibur.vfs.ZipVFileAccessor
All Implemented Interfaces:
VFileAccessor

public final class ZipVFileAccessor
extends java.lang.Object
implements VFileAccessor

Accessor for Zip file VFS.

Author:
Peter Donald

Constructor Summary
ZipVFileAccessor()
           
 
Method Summary
 java.io.InputStream getInputStream(VFile file, java.lang.Object resource)
          Get InputStream for resource.
 long getSize(VFile file, java.lang.Object resource)
          Get size of resource in bytes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipVFileAccessor

public ZipVFileAccessor()
Method Detail

getSize

public long getSize(VFile file,
                    java.lang.Object resource)
Get size of resource in bytes.
Specified by:
getSize in interface VFileAccessor
Parameters:
resource - the resource designator
Returns:
the size of resource in bytes

getInputStream

public java.io.InputStream getInputStream(VFile file,
                                          java.lang.Object resource)
Get InputStream for resource.
Specified by:
getInputStream in interface VFileAccessor
Parameters:
resource - the resource designator
Returns:
the input stream
Throws:
IOException - if an error occurs


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.