|
|||||||||
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.CachePath
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 |
CachePath(FilesystemPath root,
java.lang.String userPath,
java.lang.String path)
|
|
CachePath(Path root,
int entries,
int capacity)
|
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 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 |
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. |
void |
setLastModified(long time)
|
void |
writeToStream(java.io.OutputStream os)
|
Methods inherited from class com.caucho.vfs.FilesystemPath |
bind,
copy,
createRoot,
getFullPath,
getParent,
getPath,
getTail,
getURL,
getUserPath,
normalizePath,
normalizePath,
schemeWalk,
setUserPath,
toString |
Methods inherited from class com.caucho.vfs.Path |
createNewFile,
createTempFile,
getAttribute,
getAttributeNames,
getContentType,
getHost,
getNativePath,
getPort,
getQuery,
getValue,
isObject,
iterator,
lookup,
lookup,
lookupNative,
lookupNative,
openAppend,
openRead,
openReadWrite,
openWrite,
removeAttribute,
renameTo,
scanScheme,
setAttribute,
setValue,
unbind |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
protected CachePath(FilesystemPath root, java.lang.String userPath, java.lang.String path)
path
- canonical pathpublic CachePath(Path root, int entries, int capacity)
Method Detail |
protected Path fsWalk(java.lang.String userPath, java.util.Map attributes, java.lang.String path)
userPath
- the exact string passed by the user's lookup()newAttributes
- the user's new attributesnewPath
- the normalized real pathpublic java.lang.String getScheme()
public boolean exists()
public boolean isDirectory()
public boolean isFile()
public long getLength()
public long getLastModified()
public void setLastModified(long time)
public boolean canRead()
public boolean canWrite()
public java.lang.String[] list() throws java.io.IOException
public boolean mkdir() throws java.io.IOException
public boolean mkdirs() throws java.io.IOException
public boolean remove() throws java.io.IOException
public boolean renameTo(Path path) throws java.io.IOException
public void writeToStream(java.io.OutputStream os) throws java.io.IOException
public StreamImpl openReadImpl() throws java.io.IOException
public StreamImpl openWriteImpl() throws java.io.IOException
public StreamImpl openAppendImpl() throws java.io.IOException
public StreamImpl openReadWriteImpl() throws java.io.IOException
public int hashCode()
public boolean equals(java.lang.Object b)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |