|
||||||||||
| 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.StringPath
public class StringPath
| Field Summary |
|---|
| Fields inherited from class com.caucho.vfs.Path |
|---|
_pathSeparatorChar, _schemeMap, _separatorChar, L |
| Constructor Summary | |
|---|---|
StringPath(java.lang.String string)
|
|
| Method Summary | |
|---|---|
boolean |
canRead()
Tests if the file can be read. |
boolean |
exists()
Tests if the file exists. |
java.lang.String |
getPath()
Returns the path. |
java.lang.String |
getScheme()
Returns the url scheme |
java.lang.String |
getURL()
Returns the full url for the given path. |
Path |
lookupImpl(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> newAttributes)
Returns a new path relative to the current one. |
StreamImpl |
openReadImpl()
|
Path |
schemeWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.lang.String path,
int offset)
Path-specific lookup. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StringPath(java.lang.String string)
| Method Detail |
|---|
public Path schemeWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.lang.String path,
int offset)
Path
schemeWalk in class PathuserPath - the user's lookup() path.attributes - the attributes for the new path.path - the lookup() pathoffset - offset into newPath to start lookup.
public java.lang.String getURL()
Path
getURL in class Pathpublic java.lang.String getScheme()
Path
getScheme in class Pathpublic java.lang.String getPath()
Path
getPath in class Path
public Path lookupImpl(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> newAttributes)
PathPath only handles scheme:xxx. Subclasses of Path will specialize the xxx.
lookupImpl in class PathuserPath - relative or absolute path, essentially any url.newAttributes - attributes for the new path.
public boolean exists()
Path
exists in class Pathpublic boolean canRead()
Path
canRead in class Pathpublic StreamImpl openReadImpl()
openReadImpl in class Path
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||