org.apache.avalon.excalibur.vfs
Class VFile
java.lang.Object
|
+--org.apache.avalon.excalibur.vfs.VFile
- public final class VFile
- extends java.lang.Object
File on virtual file system.
- Author:
- Peter Donald
Constructor Summary |
protected |
VFile(java.lang.String path,
VFileSystem filesystem)
Constructor for creating a directory entry. |
protected |
VFile(java.lang.String path,
VFileSystem filesystem,
java.lang.Object resource,
VFileAccessor accessor)
Constructor for creating a vfile. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VFile
protected VFile(java.lang.String path,
VFileSystem filesystem)
- Constructor for creating a directory entry.
- Parameters:
path
- the path to directoryfilesystem
- the filesystem VFile belongs to
VFile
protected VFile(java.lang.String path,
VFileSystem filesystem,
java.lang.Object resource,
VFileAccessor accessor)
throws java.lang.IllegalArgumentException
- Constructor for creating a vfile.
- Parameters:
path
- the path to directoryfilesystem
- the filesystem VFile belongs toresource
- resource represented by vfile. Must be non-null if accessor non-null.accessor
- accessor to access vfile. Must be non-null if resource non-null.- Throws:
java.lang.IllegalArgumentException
- if an error occurs
getPath
public java.lang.String getPath()
- Get path to file.
- Returns:
- the path to file
getName
public java.lang.String getName()
- Get name of file.
- Returns:
- the name of file
getParent
public VFile getParent()
throws java.io.IOException
list
public VFile[] list()
throws java.io.IOException
list
public VFile[] list(VFileFilter filter)
throws java.io.IOException
isDirectory
public boolean isDirectory()
isFile
public boolean isFile()
getSize
public long getSize()
throws java.io.IOException
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
isValid
public boolean isValid()
invalidate
protected void invalidate()
- Invalidate VFile and free all resources.
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.