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, writeToStreampublic 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)
PathschemeWalk 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()
Pathpublic java.lang.String getScheme()
Pathpublic void setScheme(java.lang.String scheme)
public java.lang.String getPath()
Pathpublic void setPath(java.lang.String path)
public boolean exists()
Pathpublic StreamImpl openReadImpl() throws java.io.IOException
openReadImpl in class Pathjava.io.IOExceptionpublic StreamImpl openWriteImpl() throws java.io.IOException
openWriteImpl in class Pathjava.io.IOExceptionpublic StreamImpl openReadWriteImpl() throws java.io.IOException
openReadWriteImpl in class Pathjava.io.IOExceptionpublic StreamImpl openAppendImpl() throws java.io.IOException
openAppendImpl in class Pathjava.io.IOException