|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.io.FileVFSModule
public class FileVFSModule
A VFS implementation based on regular files.
| Constructor Summary | |
|---|---|
FileVFSModule()
|
|
FileVFSModule(java.io.File root)
|
|
| Method Summary | |
|---|---|
boolean |
exists(java.lang.String path)
True if the file exists. |
java.io.File |
fileFor(java.lang.String path)
|
java.io.InputStream |
inputStreamFor(java.lang.String path)
Returns an input stream for the given path. |
boolean |
isDirectory(java.lang.String path)
True if the path is a directory. |
boolean |
isWritable()
True if this module supports writing. |
long |
lastModified(java.lang.String path)
Returns the timestamp for when the file was last modified. |
VFSNode[] |
list(java.lang.String path)
Lists the entries in the virtual directory at path. |
java.io.OutputStream |
outputStreamFor(java.lang.String path)
Returns on output stream for the given path. |
VFSRandomAccess |
randomAccessFor(java.lang.String path)
Returns a random-access handle for the given path. |
void |
remove(java.lang.String path)
Removes the file at the given path. |
int |
sizeOf(java.lang.String path)
Returns the file size for the given path. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileVFSModule(java.io.File root)
public FileVFSModule()
| Method Detail |
|---|
public boolean isWritable()
VFSModule
isWritable in interface VFSModule
public java.io.InputStream inputStreamFor(java.lang.String path)
throws java.io.IOException
VFSModule
inputStreamFor in interface VFSModulejava.io.IOException
public java.io.OutputStream outputStreamFor(java.lang.String path)
throws java.io.IOException
VFSModule
outputStreamFor in interface VFSModulejava.io.IOException
public VFSRandomAccess randomAccessFor(java.lang.String path)
throws java.io.IOException
VFSModule
randomAccessFor in interface VFSModulejava.io.IOException
public boolean exists(java.lang.String path)
throws java.io.IOException
VFSModule
exists in interface VFSModulejava.io.IOException
public boolean isDirectory(java.lang.String path)
throws java.io.IOException
VFSModule
isDirectory in interface VFSModulejava.io.IOException
public int sizeOf(java.lang.String path)
throws java.io.IOException
VFSModule
sizeOf in interface VFSModulejava.io.IOException
public void remove(java.lang.String path)
throws java.io.IOException
VFSModule
remove in interface VFSModulejava.io.IOException
public VFSNode[] list(java.lang.String path)
throws java.io.IOException
VFSModule
list in interface VFSModulejava.io.IOException
public long lastModified(java.lang.String path)
throws java.io.IOException
VFSModule
lastModified in interface VFSModulejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object
public java.io.File fileFor(java.lang.String path)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||