|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.vfs.Path
com.caucho.env.vfs.RepositoryPath
public class RepositoryPath
Virtual path based on an expansion repository
Field Summary |
---|
Fields inherited from class com.caucho.vfs.Path |
---|
_pathSeparatorChar, _schemeMap, _separatorChar |
Constructor Summary | |
---|---|
protected |
RepositoryPath(RepositoryRoot repository,
RepositoryPath root,
Path physicalPath)
|
|
RepositoryPath(java.lang.String tagId,
Path physicalRoot)
|
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. |
long |
getCrc64()
Returns the crc64 code. |
long |
getCreateTime()
Returns the create time of the file. |
long |
getLastAccessTime()
Returns the last access time of the file. |
long |
getLastModified()
Returns the last modified time of the file. |
long |
getLength()
Returns the length of the file in bytes. |
java.lang.String |
getPath()
Returns the path. |
java.lang.String |
getScheme()
Returns the url scheme |
boolean |
isDirectory()
Tests if the path refers to a directory. |
boolean |
isFile()
Tests if the path refers to a file. |
java.lang.String[] |
list()
|
StreamImpl |
openReadImpl()
|
Path |
schemeWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> newAttributes,
java.lang.String newPath,
int offset)
Path-specific lookup. |
Path |
unwrap()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RepositoryPath(java.lang.String tagId, Path physicalRoot) throws java.io.IOException
java.io.IOException
protected RepositoryPath(RepositoryRoot repository, RepositoryPath root, Path physicalPath)
Method Detail |
---|
public java.lang.String getPath()
Path
getPath
in class Path
public java.lang.String getScheme()
Path
getScheme
in class Path
public Path schemeWalk(java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> newAttributes, java.lang.String newPath, int offset)
Path
schemeWalk
in class Path
userPath
- the user's lookup() path.newAttributes
- the attributes for the new path.newPath
- the lookup() pathoffset
- offset into newPath to start lookup.
public boolean exists()
Path
exists
in class Path
public boolean isFile()
Path
isFile
in class Path
public boolean isDirectory()
Path
isDirectory
in class Path
public boolean canRead()
Path
canRead
in class Path
public boolean canWrite()
Path
canWrite
in class Path
public long getLength()
Path
getLength
in class Path
public long getLastModified()
Path
getLastModified
in class Path
public long getCreateTime()
Path
getCreateTime
in class Path
public long getLastAccessTime()
Path
getLastAccessTime
in class Path
public long getCrc64()
Path
getCrc64
in class Path
public java.lang.String[] list() throws java.io.IOException
list
in class Path
java.io.IOException
public StreamImpl openReadImpl() throws java.io.IOException
openReadImpl
in class Path
java.io.IOException
public Path unwrap()
unwrap
in class Path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |