public class WebstartVfs extends AbstractVfs
Copyright 2004-2012 Partner Software, Inc.
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
getBufferSize, getDisableOptimizations, getVerifyTransfers, setBufferSize, setDisableOptimizations, setVerifyTransferspublic WebstartVfs(java.net.URL root)
root - root directory for Vfspublic WebstartVfs(java.lang.String root)
root - root path for Vfspublic Path getAbsolutePath()
Vfspublic boolean isWritable()
Vfspublic VfsFile fileFor(Path path)
Vfspath - to filepublic VfsDirectory directoryFor(Path path)
Vfspath - to directorypublic VfsDirectory directoryFor(java.lang.String subPathString)
VfssubPathString - string-encoded path to directorypublic VfsFile fileFor(java.lang.String subPathString)
VfssubPathString - string-encoded path to filepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.net.URL urlForFile(Path path)
public java.net.URL urlForDirectory(Path path)