org.apache.avalon.excalibur.vfs
Interface VFileAccessor
- All Known Implementing Classes:
- ZipVFileAccessor, DirectoryVFileAccessor
- public interface VFileAccessor
Accessor for implementations of VFS.
- Author:
- Peter Donald
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. |
getSize
public long getSize(VFile file,
java.lang.Object resource)
- Get size of resource in bytes.
- Parameters:
resource
- the resource designator- Returns:
- the size of resource in bytes
getInputStream
public java.io.InputStream getInputStream(VFile file,
java.lang.Object resource)
throws java.io.IOException
- Get InputStream for resource.
- Parameters:
resource
- the resource designator- Returns:
- the input stream
- Throws:
java.io.IOException
- if an error occurs
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.