|
||||||||||
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.MemoryPath
public class MemoryPath
Nested Class Summary | |
---|---|
class |
MemoryPath.MemoryStream
|
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 |
Constructor Summary | |
---|---|
|
MemoryPath()
|
protected |
MemoryPath(FilesystemPath root,
java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> 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. |
Path |
copyCache()
|
MemoryPath |
copyDeep()
|
boolean |
equals(java.lang.Object o)
|
boolean |
exists()
Tests if the file exists. |
Path |
fsWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> 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.String |
getURL()
Returns the full url for the given path. |
java.lang.Object |
getValue()
Gets the object at the path. |
boolean |
isDirectory()
Tests if the path refers to a directory. |
boolean |
isExecutable()
Tests if the path is marked as executable |
boolean |
isFile()
Tests if the path refers to a file. |
boolean |
isObject()
Tests if the path refers to an object. |
boolean |
isPathCacheable()
Returns true if the path itself is cacheable |
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 |
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. |
boolean |
setExecutable(boolean isExecutable)
Change the executable status of the of the path. |
void |
setValue(java.lang.Object object)
Sets the object at the path. |
Methods inherited from class com.caucho.vfs.FilesystemPath |
---|
bind, createRoot, getFullPath, getParent, getPath, getRoot, getTail, getUserPath, hashCode, init, normalizePath, normalizePath, schemeWalk, setUserPath |
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<java.lang.String,java.lang.Object> attributes, java.lang.String path)
public MemoryPath()
Method Detail |
---|
public Path fsWalk(java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> attributes, java.lang.String path)
FilesystemPath
fsWalk
in class FilesystemPath
userPath
- the exact string passed by the user's lookup()attributes
- the user's new attributespath
- the normalized real path
public java.lang.String getScheme()
Path
getScheme
in class Path
public java.lang.String getURL()
Path
getURL
in class Path
public boolean isPathCacheable()
Path
isPathCacheable
in class Path
public boolean exists()
Path
exists
in class Path
public boolean isDirectory()
Path
isDirectory
in class Path
public boolean isFile()
Path
isFile
in class Path
public boolean isObject()
Path
isObject
in class Path
public boolean setExecutable(boolean isExecutable)
Path
setExecutable
in class Path
public boolean isExecutable()
Path
isExecutable
in class Path
public long getLength()
Path
getLength
in class Path
public long getLastModified()
Path
getLastModified
in class Path
public boolean canRead()
Path
canRead
in class Path
public boolean canWrite()
Path
canWrite
in class Path
public java.lang.String[] list()
list
in class Path
public boolean mkdir()
Path
mkdir
in class Path
public boolean mkdirs()
Path
mkdirs
in class Path
public boolean remove()
Path
remove
in class Path
public boolean renameTo(Path path)
Path
renameTo
in class Path
public StreamImpl openReadImpl() throws java.io.IOException
openReadImpl
in class Path
java.io.IOException
public StreamImpl openWriteImpl() throws java.io.IOException
openWriteImpl
in class Path
java.io.IOException
public StreamImpl openAppendImpl() throws java.io.IOException
openAppendImpl
in class Path
java.io.IOException
public java.lang.Object getValue() throws java.io.IOException
Path
A bean filesystem or a mime-type aware filesystem could deserialize the contents of the file.
getValue
in class Path
java.io.IOException
public void setValue(java.lang.Object object) throws java.io.IOException
Path
Normal 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
java.io.IOException
public Path copyCache()
public MemoryPath copyDeep()
public boolean equals(java.lang.Object o)
equals
in class FilesystemPath
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |