com.caucho.vfs
Class NotFoundPath

java.lang.Object
  extended by com.caucho.vfs.Path
      extended by com.caucho.vfs.NotFoundPath
All Implemented Interfaces:
java.lang.Comparable<Path>

public class NotFoundPath
extends Path

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.

Since:
Resin 1.2

Field Summary
 
Fields inherited from class com.caucho.vfs.Path
_pathSeparatorChar, _schemeMap, _separatorChar, L
 
Constructor Summary
NotFoundPath(SchemeMap schemeMap, java.lang.String url)
          Creates new NotFoundPath
 
Method Summary
protected  Path copyCache()
           
 boolean equals(java.lang.Object obj)
          Only identical is equals
 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
 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 com.caucho.vfs.Path
bind, cacheCopy, canExecute, canRead, canWrite, changeGroup, changeGroup, changeOwner, changeOwner, chmod, clearStatusCache, compareTo, copy, createDepend, createLink, createNewFile, createRoot, createRoot, createTempFile, escapeURL, exists, getAttribute, getAttributeNames, getBlockCount, getBlockSize, getCache, getCertificates, getContentType, getCrc64, getCreateTime, getDevice, getDeviceId, getDiskSpaceFree, getDiskSpaceTotal, getFileSeparatorChar, getFullPath, getGroup, getHost, getInode, getLastAccessTime, getLastModified, getLastStatusChangeTime, getLength, getMode, getNativePath, getNewlineString, getNumberOfLinks, getObject, getOwner, getParent, getPathSeparatorChar, getPort, getQuery, getRelativePath, getResources, getResources, getSchemeMap, getSeparatorChar, getTail, getUser, getUserDir, getUserPath, getValue, hashCode, isBlockDevice, isCharacterDevice, isDirectory, isExecutable, isFIFO, isFile, isHardLink, isLink, isObject, isPathCacheable, isSocket, isSymbolicLink, isWindows, isWindowsInsecure, iterator, list, lookup, lookup, lookup, lookupImpl, lookupNative, lookupNative, lookupRelativeNativePath, mkdir, mkdirs, openAppend, openAppendImpl, openFileRandomAccess, openMemoryMappedFile, openRandomAccess, openRead, openReadWrite, openReadWrite, openReadWrite, openReadWriteImpl, openWrite, openWriteImpl, putCache, readLink, realPath, remove, removeAll, renameTo, renameTo, scanScheme, setDefaultSchemeMap, setExecutable, setLastModified, setObject, setTestWindows, setUserPath, setValue, toString, truncate, truncate, unbind, writeToStream, writeToStream
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotFoundPath

public NotFoundPath(SchemeMap schemeMap,
                    java.lang.String url)
Creates new NotFoundPath

Method Detail

schemeWalk

public Path schemeWalk(java.lang.String userPath,
                       java.util.Map<java.lang.String,java.lang.Object> attributes,
                       java.lang.String path,
                       int offset)
Dummy return.

Specified by:
schemeWalk in class Path
Parameters:
userPath - the user's lookup() path.
attributes - the attributes for the new path.
path - the lookup() path
offset - offset into newPath to start lookup.
Returns:
the found path

getURL

public java.lang.String getURL()
The URL is error

Overrides:
getURL in class Path

getScheme

public java.lang.String getScheme()
Description copied from class: Path
Returns the url scheme

Specified by:
getScheme in class Path

getPath

public java.lang.String getPath()
Returns the URL which can't be found.

Specified by:
getPath in class Path

openReadImpl

public StreamImpl openReadImpl()
                        throws java.io.IOException
Throws a FileNotFoundException for any read.

Overrides:
openReadImpl in class Path
Throws:
java.io.IOException

copyCache

protected Path copyCache()

equals

public boolean equals(java.lang.Object obj)
Only identical is equals

Overrides:
equals in class Path