Path.FileChannelFactory
_pathSeparatorChar, _schemeMap, _separatorChar, L
Constructor and Description |
---|
ConstPath(Path root,
StreamImpl stream) |
Modifier and Type | Method and Description |
---|---|
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.
|
StreamImpl |
openAppendImpl() |
StreamImpl |
openReadImpl() |
StreamImpl |
openReadWriteImpl() |
StreamImpl |
openWriteImpl() |
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.
|
void |
setPath(java.lang.String path) |
void |
setScheme(java.lang.String scheme) |
bind, cacheCopy, canExecute, canRead, canWrite, changeGroup, changeGroup, changeOwner, changeOwner, chmod, clearStatusCache, compareTo, copy, createDepend, createLink, createNewFile, createRoot, createRoot, createTempFile, equals, escapeURL, fileChannelFactory, 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, lookupChild, lookupImpl, lookupNative, lookupNative, lookupRelativeNativePath, mkdir, mkdirs, openAppend, openFileRandomAccess, openMemoryMappedFile, openRandomAccess, openRead, openReadWrite, openReadWrite, openReadWrite, openWrite, putCache, readLink, realPath, remove, removeAll, renameTo, renameTo, scanScheme, sendfile, setDefaultSchemeMap, setExecutable, setLastModified, setObject, setTestWindows, setUserPath, setValue, toString, truncate, truncate, unbind, unwrap, writeToStream, writeToStream
public ConstPath(Path root, StreamImpl stream)
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 Path
userPath
- 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
public java.lang.String getScheme()
Path
public void setScheme(java.lang.String scheme)
public java.lang.String getPath()
Path
public void setPath(java.lang.String path)
public boolean exists()
Path
public StreamImpl openReadImpl() throws java.io.IOException
openReadImpl
in class Path
java.io.IOException
public StreamImpl openWriteImpl() throws java.io.IOException
openWriteImpl
in class Path
java.io.IOException
public StreamImpl openReadWriteImpl() throws java.io.IOException
openReadWriteImpl
in class Path
java.io.IOException
public StreamImpl openAppendImpl() throws java.io.IOException
openAppendImpl
in class Path
java.io.IOException