|
||||||||||
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.ClasspathPath
public class ClasspathPath
The classpath scheme.
Field Summary | |
---|---|
protected static L10N |
L
|
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 | |
---|---|
ClasspathPath(FilesystemPath root,
java.lang.String userPath,
java.lang.String path)
Creates a new classpath sub path. |
Method Summary | |
---|---|
boolean |
canRead()
Returns true if the file is readable. |
boolean |
exists()
Returns true 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 the actual path relative to the filesystem root. |
long |
getLength()
Returns the length of the file in bytes. |
java.lang.String |
getScheme()
Returns the scheme, http. |
boolean |
isDirectory()
Returns the last modified time. |
boolean |
isFile()
Returns true if the file exists. |
StreamImpl |
openReadImpl()
Returns a read stream for a GET request. |
java.lang.String |
toString()
Returns the string form of the http path. |
Methods inherited from class com.caucho.vfs.FilesystemPath |
---|
bind, createRoot, equals, 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 |
Field Detail |
---|
protected static L10N L
Constructor Detail |
---|
public ClasspathPath(FilesystemPath root, java.lang.String userPath, java.lang.String path)
root
- the classpath filesystem rootuserPath
- the argument to the calling lookup()newAttributes
- any attributes passed to httppath
- the full normalized pathquery
- any query stringMethod Detail |
---|
public Path fsWalk(java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> attributes, java.lang.String path)
fsWalk
in class FilesystemPath
userPath
- the user's path to lookup()attributes
- the user's attributes to lookup()path
- the normalized path
public java.lang.String getScheme()
getScheme
in class Path
public boolean exists()
exists
in class Path
public boolean isFile()
isFile
in class Path
public boolean canRead()
canRead
in class Path
public boolean isDirectory()
isDirectory
in class Path
public long getLength()
Path
getLength
in class Path
public StreamImpl openReadImpl() throws java.io.IOException
openReadImpl
in class Path
java.io.IOException
public java.lang.String toString()
toString
in class Path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |