public class SpyPath extends PathWrapper
Path.FileChannelFactory
Modifier and Type | Field and Description |
---|---|
protected static java.util.logging.Logger |
log |
L
_pathSeparatorChar, _schemeMap, _separatorChar
Constructor and Description |
---|
SpyPath(Path path)
Creates a new Path object.
|
Modifier and Type | Method and Description |
---|---|
Path |
lookup(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> newAttributes)
Returns a new path relative to the current one.
|
RandomAccessStream |
openRandomAccess()
Opens a random-access stream.
|
bind, canRead, canWrite, changeGroup, changeGroup, changeOwner, changeOwner, chmod, createNewFile, createRoot, createRoot, createTempFile, equals, exists, getAttribute, getAttributeNames, getContentType, getCrc64, getCreateTime, getDiskSpaceFree, getDiskSpaceTotal, getFullPath, getGroup, getHost, getInode, getLastAccessTime, getLastModified, getLength, getNativePath, getObject, getOwner, getParent, getPath, getPort, getQuery, getRelativePath, getResources, getResources, getScheme, getTail, getURL, getUserPath, getValue, getWrappedPath, hashCode, isDirectory, isExecutable, isFile, isObject, iterator, list, lookupImpl, lookupNative, mkdir, mkdirs, openAppend, openAppendImpl, openReadImpl, openReadWrite, openReadWrite, openReadWriteImpl, openWriteImpl, remove, removeAll, renameTo, schemeWalk, setExecutable, setLastModified, setObject, setUserPath, setValue, toString, unbind, writeToStream, writeToStream
cacheCopy, canExecute, clearStatusCache, compareTo, copy, createDepend, createLink, escapeURL, fileChannelFactory, getBlockCount, getBlockSize, getCache, getCertificates, getDevice, getDeviceId, getFileSeparatorChar, getLastStatusChangeTime, getMode, getNewlineString, getNumberOfLinks, getPathSeparatorChar, getSchemeMap, getSeparatorChar, getUser, getUserDir, isBlockDevice, isCharacterDevice, isFIFO, isHardLink, isLink, isPathCacheable, isSocket, isSymbolicLink, isWindows, isWindowsInsecure, lookup, lookup, lookupChild, lookupNative, lookupRelativeNativePath, openFileRandomAccess, openMemoryMappedFile, openRead, openReadWrite, openWrite, putCache, readLink, realPath, renameTo, scanScheme, sendfile, setDefaultSchemeMap, setTestWindows, truncate, truncate, unwrap
public SpyPath(Path path)
root
- the new Path root.public Path lookup(java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> newAttributes)
Path only handles scheme:xxx. Subclasses of Path will specialize the xxx.
lookup
in class PathWrapper
userPath
- relative or absolute path, essentially any url.newAttributes
- attributes for the new path.public RandomAccessStream openRandomAccess() throws java.io.IOException
openRandomAccess
in class PathWrapper
java.io.IOException