public class ClasspathPath extends FilesystemPath
Path.FileChannelFactory| Modifier and Type | Field and Description |
|---|---|
protected static L10N |
L |
_bindRoot, _pathname, _root, _userPath_pathSeparatorChar, _schemeMap, _separatorChar| Constructor and Description |
|---|
ClasspathPath(FilesystemPath root,
java.lang.String userPath,
java.lang.String path)
Creates a new classpath sub path.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
bind, createRoot, equals, getFullPath, getParent, getPath, getRoot, getTail, getUserPath, hashCode, init, normalizePath, normalizePath, schemeWalk, setUserPathcacheCopy, canExecute, canWrite, changeGroup, changeGroup, changeOwner, changeOwner, chmod, clearStatusCache, compareTo, copy, createDepend, createLink, createNewFile, createRoot, createTempFile, escapeURL, fileChannelFactory, getAttribute, getAttributeNames, getBlockCount, getBlockSize, getCache, getCertificates, getContentType, getCrc64, getCreateTime, getDevice, getDeviceId, getDiskSpaceFree, getDiskSpaceTotal, getFileSeparatorChar, getGroup, getHost, getInode, getLastAccessTime, getLastModified, getLastStatusChangeTime, getMode, getNativePath, getNewlineString, getNumberOfLinks, getObject, getOwner, getPathSeparatorChar, getPort, getQuery, getRelativePath, getResources, getResources, getSchemeMap, getSeparatorChar, getURL, getUser, getUserDir, getValue, isBlockDevice, isCharacterDevice, isExecutable, isFIFO, isHardLink, isLink, isObject, isPathCacheable, isSocket, isSymbolicLink, isWindows, isWindowsInsecure, iterator, list, lookup, lookup, lookup, lookupChild, 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, sendfile, setDefaultSchemeMap, setExecutable, setLastModified, setObject, setTestWindows, setValue, truncate, truncate, unbind, unwrap, writeToStream, writeToStreamprotected static L10N L
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 stringpublic Path fsWalk(java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> attributes, java.lang.String path)
fsWalk in class FilesystemPathuserPath - the user's path to lookup()attributes - the user's attributes to lookup()path - the normalized pathpublic java.lang.String getScheme()
public boolean canRead()
public boolean isDirectory()
isDirectory in class Pathpublic long getLength()
Pathpublic StreamImpl openReadImpl() throws java.io.IOException
openReadImpl in class Pathjava.io.IOException