|
|||||||||
| 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.MemoryPath
| Inner Class Summary | |
class |
MemoryPath.MemoryStream
|
| Fields inherited from class com.caucho.vfs.FilesystemPath |
bindRoot, pathname, root, separatorChar, userPath |
| Fields inherited from class com.caucho.vfs.Path |
schemeMap |
| Constructor Summary | |
|
MemoryPath()
|
protected |
MemoryPath(FilesystemPath root,
java.lang.String userPath,
java.util.Map attributes,
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 |
exists()
Tests if the file exists. |
Path |
fsWalk(java.lang.String userPath,
java.util.Map attributes,
java.lang.String path)
Lookup a path relative to the current filesystem's root. |
long |
getLastModified()
Returns the last modified time of the file. |
long |
getLength()
Returns the length of the file in bytes. |
java.lang.String |
getScheme()
Returns the url scheme |
java.lang.Object |
getValue()
Gets the object at the path. |
boolean |
isDirectory()
Tests if the path refers to a directory. |
boolean |
isFile()
Tests if the path refers to a file. |
boolean |
isObject()
Tests if the path refers to an object. |
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. |
protected StreamImpl |
openAppendImpl()
|
protected StreamImpl |
openReadImpl()
|
protected 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. |
void |
setValue(java.lang.Object object)
Sets the object at the path. |
| Methods inherited from class com.caucho.vfs.FilesystemPath |
bind, copy, createRoot, equals, getFullPath, getParent, getPath, getTail, getURL, getUserPath, hashCode, normalizePath, normalizePath, schemeWalk, setUserPath, toString |
| Methods inherited from class com.caucho.vfs.Path |
createNewFile, createTempFile, getAttribute, getAttributeNames, getContentType, getHost, getNativePath, getPort, getQuery, iterator, lookup, lookup, lookupNative, lookupNative, openAppend, openRead, openReadWrite, openReadWriteImpl, openWrite, removeAttribute, renameTo, scanScheme, setAttribute, setLastModified, unbind, writeToStream |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected MemoryPath(FilesystemPath root,
java.lang.String userPath,
java.util.Map attributes,
java.lang.String path)
public MemoryPath()
| Method Detail |
public Path fsWalk(java.lang.String userPath,
java.util.Map attributes,
java.lang.String path)
FilesystemPathfsWalk in class FilesystemPathcom.caucho.vfs.FilesystemPathuserPath - the exact string passed by the user's lookup()newAttributes - the user's new attributesnewPath - the normalized real pathpublic java.lang.String getScheme()
PathgetScheme in class Pathpublic boolean exists()
Pathexists in class Pathpublic boolean isDirectory()
PathisDirectory in class Pathpublic boolean isFile()
PathisFile in class Pathpublic boolean isObject()
PathisObject in class Pathpublic long getLength()
PathgetLength in class Pathcom.caucho.vfs.Pathpublic long getLastModified()
PathgetLastModified in class Pathcom.caucho.vfs.Pathpublic boolean canRead()
PathcanRead in class Pathpublic boolean canWrite()
PathcanWrite in class Pathpublic java.lang.String[] list()
list in class Pathcom.caucho.vfs.Pathpublic boolean mkdir()
Pathmkdir in class Pathcom.caucho.vfs.Pathpublic boolean mkdirs()
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
protected StreamImpl openReadImpl()
throws java.io.IOException
openReadImpl in class Path
protected StreamImpl openWriteImpl()
throws java.io.IOException
openWriteImpl in class Path
protected StreamImpl openAppendImpl()
throws java.io.IOException
openAppendImpl in class Path
public java.lang.Object getValue()
throws java.io.IOException
PathA bean filesystem or a mime-type aware filesystem could deserialize the contents of the file.
getValue in class Path
public void setValue(java.lang.Object object)
throws java.io.IOException
PathNormal filesystems will generally do nothing. However, a bean filesystem or a mime-type aware filesystem could serialize the object and store it.
setValue in class Path
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||