public class FileVfs extends AbstractVfs
Copyright 2004-2012 Partner Software, Inc.
| Constructor and Description |
|---|
FileVfs()
Create a new FileVfsModule rooted at the current working directory
(generally the Partner install directory).
|
FileVfs(java.io.File root)
Create a new FileVfs rooted at the given directory.
|
FileVfs(java.lang.String root)
Create a new FileVfs rooted at the given path.
|
| 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.
|
java.io.File |
javaFileFor(Path path) |
void |
move(Path oldPath,
Path newPath) |
java.lang.String |
toString() |
getBufferSize, getDisableOptimizations, getVerifyTransfers, setBufferSize, setDisableOptimizations, setVerifyTransferspublic FileVfs(java.io.File root)
root - root directory for Vfspublic FileVfs(java.lang.String root)
root - root path for Vfspublic FileVfs()
public 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.io.File javaFileFor(Path path)