|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.io.VFS
public class VFS
A virtual file system; basically it makes file access transparent whether you are running directly or off of Java Web Start or some other weird setup.
| Constructor Summary | |
|---|---|
VFS()
|
|
VFS(java.io.File rootDir)
|
|
VFS(java.net.URL root)
|
|
VFS(java.net.URL root,
java.lang.String systemPath)
|
|
| Method Summary | |
|---|---|
java.io.BufferedInputStream |
bufferedInputStreamFor(java.lang.String path)
|
java.io.BufferedOutputStream |
bufferedOutputStreamFor(java.lang.String path)
|
java.io.BufferedReader |
bufferedReaderFor(java.lang.String path)
|
java.io.BufferedWriter |
bufferedWriterFor(java.lang.String path)
|
byte[] |
bytesFor(java.lang.String path)
|
boolean |
exists(java.lang.String path)
|
java.io.InputStream |
inputStreamFor(java.lang.String path)
|
boolean |
isDirectory(java.lang.String path)
|
boolean |
isInitialized()
|
long |
lastModified(java.lang.String path)
|
VFSNode[] |
list(java.lang.String path)
|
java.util.ArrayList |
listContentsRemoveExtension(java.lang.String path,
java.lang.String extension)
|
java.util.ArrayList |
listRecursive(java.lang.String path)
|
void |
listRecursiveImp(java.lang.String path,
java.util.ArrayList results)
|
java.io.OutputStream |
outputStreamFor(java.lang.String path)
|
VFSRandomAccess |
randomAccessFor(java.lang.String path)
|
java.io.Reader |
readerFor(java.lang.String path)
|
java.lang.String |
readLine(java.lang.String path)
Reads the first line of a file in as a single String. |
java.lang.String |
readText(java.lang.String path)
Reads the entire contents of a file as a single String. |
void |
remove(java.lang.String path)
|
void |
removeRecursive(java.lang.String path)
|
static VFS |
singleton()
|
int |
sizeOf(java.lang.String path)
|
java.lang.String |
toString()
|
void |
writeLine(java.lang.String path,
java.lang.String line)
Writes a string to a file as a single line. |
java.io.Writer |
writerFor(java.lang.String path)
|
void |
writeText(java.lang.String path,
java.lang.String contents)
Writes the entire contents of a file as a single String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VFS()
public VFS(java.net.URL root)
public VFS(java.net.URL root,
java.lang.String systemPath)
public VFS(java.io.File rootDir)
| Method Detail |
|---|
public static VFS singleton()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isInitialized()
public java.io.InputStream inputStreamFor(java.lang.String path)
throws java.io.IOException
java.io.IOException
public java.io.OutputStream outputStreamFor(java.lang.String path)
throws java.io.IOException
java.io.IOException
public VFSRandomAccess randomAccessFor(java.lang.String path)
throws java.io.IOException
java.io.IOException
public boolean exists(java.lang.String path)
throws java.io.IOException
java.io.IOException
public boolean isDirectory(java.lang.String path)
throws java.io.IOException
java.io.IOException
public int sizeOf(java.lang.String path)
throws java.io.IOException
java.io.IOException
public void remove(java.lang.String path)
throws java.io.IOException
java.io.IOException
public void removeRecursive(java.lang.String path)
throws java.io.IOException
java.io.IOException
public VFSNode[] list(java.lang.String path)
throws java.io.IOException
java.io.IOException
public long lastModified(java.lang.String path)
throws java.io.IOException
java.io.IOException
public java.util.ArrayList listRecursive(java.lang.String path)
throws java.io.IOException
java.io.IOException
public void listRecursiveImp(java.lang.String path,
java.util.ArrayList results)
throws java.io.IOException
java.io.IOException
public java.io.BufferedInputStream bufferedInputStreamFor(java.lang.String path)
throws java.io.IOException
java.io.IOException
public java.io.BufferedOutputStream bufferedOutputStreamFor(java.lang.String path)
throws java.io.IOException
java.io.IOException
public java.io.Reader readerFor(java.lang.String path)
throws java.io.IOException
java.io.IOException
public java.io.BufferedReader bufferedReaderFor(java.lang.String path)
throws java.io.IOException
java.io.IOException
public java.io.Writer writerFor(java.lang.String path)
throws java.io.IOException
java.io.IOException
public java.io.BufferedWriter bufferedWriterFor(java.lang.String path)
throws java.io.IOException
java.io.IOException
public byte[] bytesFor(java.lang.String path)
throws java.io.IOException
java.io.IOException
public java.util.ArrayList listContentsRemoveExtension(java.lang.String path,
java.lang.String extension)
throws java.io.IOException
java.io.IOException
public java.lang.String readLine(java.lang.String path)
throws java.io.IOException
java.io.IOException
public void writeLine(java.lang.String path,
java.lang.String line)
throws java.io.IOException
java.io.IOException
public java.lang.String readText(java.lang.String path)
throws java.io.IOException
java.io.IOException
public void writeText(java.lang.String path,
java.lang.String contents)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||