|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.vfs.Path
com.caucho.vfs.FilesystemPath
com.caucho.vfs.remote.RemotePath
public class RemotePath
Remote filesystem
| Field Summary |
|---|
| Fields inherited from class com.caucho.vfs.FilesystemPath |
|---|
_bindRoot, _pathname, _root, _userPath |
| Fields inherited from class com.caucho.vfs.Path |
|---|
_pathSeparatorChar, _schemeMap, _separatorChar, L |
| Constructor Summary | |
|---|---|
protected |
RemotePath(RemotePathRoot root,
java.lang.String userPath,
java.lang.String pathname)
Create a new RemoteFilesystem |
|
RemotePath(java.lang.String url,
Path dbDirectory,
java.lang.String tableName)
Create the root new RemoteFilesystem |
| Method Summary | |
|---|---|
boolean |
canRead()
Returns true if the file is readable. |
boolean |
canWrite()
Returns true if the file is writable |
protected Path |
copy()
|
Path |
fsWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> newAttributes,
java.lang.String newPath)
Lookup a path relative to the current filesystem's root. |
long |
getCrc64()
Returns the digest |
long |
getLastModified()
Returns the last modified time |
long |
getLength()
Returns the length. |
java.lang.String |
getScheme()
Returns the scheme. |
boolean |
isDirectory()
Returns true for directory |
boolean |
isFile()
Returns true for regular files |
java.lang.String[] |
list()
Lists the directory contents |
StreamImpl |
openReadImpl()
Opens a read stream. |
| Methods inherited from class com.caucho.vfs.FilesystemPath |
|---|
bind, createRoot, equals, getFullPath, getParent, getPath, getRoot, getTail, getUserPath, hashCode, normalizePath, normalizePath, schemeWalk, setUserPath |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RemotePath(java.lang.String url,
Path dbDirectory,
java.lang.String tableName)
throws java.lang.Exception
url - the remote url
java.lang.Exception
protected RemotePath(RemotePathRoot root,
java.lang.String userPath,
java.lang.String pathname)
root - Root of url spaceuserPath - the user's pathpathname - Canonical path| Method Detail |
|---|
public Path fsWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> newAttributes,
java.lang.String newPath)
fsWalk in class FilesystemPathuserPath - the exact string passed by the user's lookup()newAttributes - the user's new attributesnewPath - the normalized real path
public java.lang.String getScheme()
getScheme in class Pathpublic long getLength()
getLength in class Pathpublic long getLastModified()
getLastModified in class Pathpublic long getCrc64()
getCrc64 in class Pathpublic boolean isFile()
isFile in class Pathpublic boolean isDirectory()
isDirectory in class Pathpublic boolean canRead()
canRead in class Pathpublic boolean canWrite()
canWrite in class Path
public java.lang.String[] list()
throws java.io.IOException
list in class Pathjava.io.IOException
public StreamImpl openReadImpl()
throws java.io.IOException
openReadImpl in class Pathjava.io.IOExceptionprotected Path copy()
copy in class Path
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||