|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.platform.webstart.WebstartVfs
public class WebstartVfs
A Vfs implementation based on local files and directories.
Copyright 2004-2007 Partner Software, Inc.
| Constructor Summary | |
|---|---|
WebstartVfs(java.lang.String root)
Create a new FileVfs rooted at the given path. |
|
WebstartVfs(java.net.URL root)
Create a new FileVfs rooted at the given directory. |
|
| Method Summary | |
|---|---|
VfsDirectory |
directoryFor(Path path)
Returns a VfsDirectory for the given path. |
VfsDirectory |
directoryFor(java.lang.String subPathString)
Returns a VfsDirectory for the given path. |
VfsFile |
fileFor(Path path)
Returns a VfsFile for the given path. |
VfsFile |
fileFor(java.lang.String subPathString)
Returns a VfsFile for the given path string. |
Path |
getAbsolutePath()
Absolute path to the root of this Vfs. |
boolean |
isWritable()
True if this module supports writing. |
void |
move(Path oldPath,
Path newPath)
|
java.lang.String |
toString()
|
java.net.URL |
urlForDirectory(Path path)
|
java.net.URL |
urlForFile(Path path)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WebstartVfs(java.net.URL root)
root - root directory for Vfspublic WebstartVfs(java.lang.String root)
root - root path for Vfs| Method Detail |
|---|
public Path getAbsolutePath()
Vfs
getAbsolutePath in interface Vfspublic boolean isWritable()
Vfs
isWritable in interface Vfspublic VfsFile fileFor(Path path)
Vfs
fileFor in interface Vfspath - to file
public VfsDirectory directoryFor(Path path)
Vfs
directoryFor in interface Vfspath - to directory
public VfsDirectory directoryFor(java.lang.String subPathString)
Vfs
directoryFor in interface VfssubPathString - string-encoded path to directory
public VfsFile fileFor(java.lang.String subPathString)
Vfs
fileFor in interface VfssubPathString - string-encoded path to file
public java.lang.String toString()
toString in class java.lang.Objectpublic java.net.URL urlForFile(Path path)
public java.net.URL urlForDirectory(Path path)
public void move(Path oldPath,
Path newPath)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||