org.apache.avalon.excalibur.vfs
Class DirectoryVFileAccessor

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

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

Accessor for vanilla directorys VFS.

Author:
Peter Donald

Constructor Summary
DirectoryVFileAccessor()
           
 
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

DirectoryVFileAccessor

public DirectoryVFileAccessor()
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.