|
||||||||||
| 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.NotFoundPath
public class NotFoundPath
Always returns FileNotFound for any open attempt.
NotFoundPath is a useful utility Path for MergePath when
the path doesn't exist in any of the merged paths.
| Field Summary |
|---|
| Fields inherited from class com.caucho.vfs.Path |
|---|
_pathSeparatorChar, _schemeMap, _separatorChar, L |
| Constructor Summary | |
|---|---|
NotFoundPath(java.lang.String url)
Creates new NotFoundPath |
|
| Method Summary | |
|---|---|
protected Path |
copyCache()
|
java.lang.String |
getPath()
Returns the URL which can't be found. |
java.lang.String |
getScheme()
Returns the url scheme |
java.lang.String |
getURL()
The URL is error |
Path |
lookupImpl(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> newAttributes)
Dummy return. |
StreamImpl |
openReadImpl()
Throws a FileNotFoundException for any read. |
Path |
schemeWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.lang.String path,
int offset)
Dummy return. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NotFoundPath(java.lang.String url)
| 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)
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()
getURL in class Pathpublic java.lang.String getScheme()
Path
getScheme in class Pathpublic java.lang.String getPath()
getPath in class Path
public Path lookupImpl(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> newAttributes)
lookupImpl in class PathuserPath - relative or absolute path, essentially any url.newAttributes - attributes for the new path.
public StreamImpl openReadImpl()
throws java.io.IOException
openReadImpl in class Pathjava.io.IOExceptionprotected Path copyCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||