|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.caucho.vfs.Path
|
+--com.caucho.vfs.FilesystemPath
|
+--com.caucho.vfs.FilePath
FilePath implements the native filesystem.
| Fields inherited from class com.caucho.vfs.FilesystemPath |
bindRoot, pathname, root, separatorChar, userPath |
| Fields inherited from class com.caucho.vfs.Path |
schemeMap |
| Constructor Summary | |
protected |
FilePath(FilesystemPath root,
java.lang.String userPath,
java.lang.String path)
|
| Method Summary | |
boolean |
canRead()
Tests if the file can be read. |
boolean |
canWrite()
Tests if the file can be written. |
boolean |
equals(java.lang.Object b)
|
boolean |
exists()
Tests if the file exists. |
protected Path |
fsWalk(java.lang.String userPath,
java.util.Map attributes,
java.lang.String path)
Lookup the actual path relative to the filesystem root. |
long |
getLastModified()
Returns the last modified time of the file. |
long |
getLength()
Returns the length of the file in bytes. |
java.lang.String |
getNativePath()
Returns the native path. |
java.lang.String |
getScheme()
Returns the url scheme |
int |
hashCode()
|
boolean |
isDirectory()
Tests if the path refers to a directory. |
boolean |
isFile()
Tests if the path refers to a file. |
java.lang.String[] |
list()
|
boolean |
mkdir()
Creates the directory named by this path. |
boolean |
mkdirs()
Creates the directory named by this path and any parent directories. |
StreamImpl |
openAppendImpl()
|
StreamImpl |
openReadImpl()
|
StreamImpl |
openReadWriteImpl()
|
StreamImpl |
openWriteImpl()
|
boolean |
remove()
Removes the file or directory named by this path. |
boolean |
renameTo(Path path)
Renames the file or directory to the name given by the path. |
protected Path |
schemeWalk(java.lang.String userPath,
java.util.Map attributes,
java.lang.String filePath,
int offset)
Lookup the path, handling windows weirdness |
void |
setLastModified(long time)
|
| Methods inherited from class com.caucho.vfs.FilesystemPath |
bind, copy, createRoot, getFullPath, getParent, getPath, getTail, getURL, getUserPath, normalizePath, normalizePath, setUserPath, toString |
| Methods inherited from class com.caucho.vfs.Path |
createNewFile, createTempFile, getAttribute, getAttributeNames, getContentType, getHost, getPort, getQuery, getValue, isObject, iterator, lookup, lookup, lookupNative, lookupNative, openAppend, openRead, openReadWrite, openWrite, removeAttribute, renameTo, scanScheme, setAttribute, setValue, unbind, writeToStream |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected FilePath(FilesystemPath root,
java.lang.String userPath,
java.lang.String path)
path - canonical path| Method Detail |
protected Path schemeWalk(java.lang.String userPath,
java.util.Map attributes,
java.lang.String filePath,
int offset)
schemeWalk in class FilesystemPathcom.caucho.vfs.FilesystemPathuserPath - the user's lookup() pathattributes - the user's attributesfilePath - the actual lookup() pathoffset - offset into filePath
protected Path fsWalk(java.lang.String userPath,
java.util.Map attributes,
java.lang.String path)
fsWalk in class FilesystemPathuserPath - the user's path to lookup()attributes - the user's attributes to lookup()path - the normalized pathpublic java.lang.String getScheme()
PathgetScheme in class Pathpublic java.lang.String getNativePath()
getNativePath in class Pathpublic boolean exists()
Pathexists in class Pathpublic boolean isDirectory()
PathisDirectory in class Pathpublic boolean isFile()
PathisFile in class Pathpublic long getLength()
PathgetLength in class Pathcom.caucho.vfs.Pathpublic long getLastModified()
PathgetLastModified in class Pathcom.caucho.vfs.Pathpublic void setLastModified(long time)
setLastModified in class Pathpublic boolean canRead()
PathcanRead in class Pathpublic boolean canWrite()
PathcanWrite in class Path
public java.lang.String[] list()
throws java.io.IOException
list in class Pathcom.caucho.vfs.Path
public boolean mkdir()
throws java.io.IOException
Pathmkdir in class Pathcom.caucho.vfs.Path
public boolean mkdirs()
throws java.io.IOException
Pathmkdirs in class Pathcom.caucho.vfs.Pathpublic boolean remove()
Pathremove in class Pathcom.caucho.vfs.Pathpublic boolean renameTo(Path path)
PathrenameTo in class Pathcom.caucho.vfs.Path
public StreamImpl openReadImpl()
throws java.io.IOException
openReadImpl in class Path
public StreamImpl openWriteImpl()
throws java.io.IOException
openWriteImpl in class Path
public StreamImpl openAppendImpl()
throws java.io.IOException
openAppendImpl in class Path
public StreamImpl openReadWriteImpl()
throws java.io.IOException
openReadWriteImpl in class Pathpublic int hashCode()
hashCode in class FilesystemPathpublic boolean equals(java.lang.Object b)
equals in class FilesystemPath
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||