public class RemotePath extends FilesystemPath
Path.FileChannelFactory
_bindRoot, _pathname, _root, _userPath
_pathSeparatorChar, _schemeMap, _separatorChar, L
Modifier | Constructor and Description |
---|---|
protected |
RemotePath(RemotePathRoot root,
java.lang.String userPath,
java.lang.String pathname)
Create a new RemoteFilesystem
|
|
RemotePath(java.lang.String url,
Path dbDirectory,
java.lang.String tableName)
Create the root new RemoteFilesystem
|
Modifier and Type | Method and Description |
---|---|
boolean |
canRead()
Returns true if the file is readable.
|
boolean |
canWrite()
Returns true if the file is writable
|
Path |
copy() |
Path |
fsWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> newAttributes,
java.lang.String newPath)
Lookup a path relative to the current filesystem's root.
|
long |
getCrc64()
Returns the digest
|
long |
getLastModified()
Returns the last modified time
|
long |
getLength()
Returns the length.
|
java.lang.String |
getScheme()
Returns the scheme.
|
boolean |
isDirectory()
Returns true for directory
|
boolean |
isFile()
Returns true for regular files
|
java.lang.String[] |
list()
Lists the directory contents
|
StreamImpl |
openReadImpl()
Opens a read stream.
|
bind, createRoot, equals, getFullPath, getParent, getPath, getRoot, getTail, getUserPath, hashCode, init, normalizePath, normalizePath, schemeWalk, setUserPath
cacheCopy, canExecute, changeGroup, changeGroup, changeOwner, changeOwner, chmod, clearStatusCache, compareTo, createDepend, createLink, createNewFile, createRoot, createTempFile, escapeURL, exists, fileChannelFactory, getAttribute, getAttributeNames, getBlockCount, getBlockSize, getCache, getCertificates, getContentType, getCreateTime, getDevice, getDeviceId, getDiskSpaceFree, getDiskSpaceTotal, getFileSeparatorChar, getGroup, getHost, getInode, getLastAccessTime, 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, 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, toString, truncate, truncate, unbind, unwrap, writeToStream, writeToStream
public RemotePath(java.lang.String url, Path dbDirectory, java.lang.String tableName) throws java.lang.Exception
url
- the remote urljava.lang.Exception
protected RemotePath(RemotePathRoot root, java.lang.String userPath, java.lang.String pathname)
root
- Root of url spaceuserPath
- the user's pathpathname
- Canonical pathpublic Path fsWalk(java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> newAttributes, java.lang.String newPath)
fsWalk
in class FilesystemPath
userPath
- the exact string passed by the user's lookup()newAttributes
- the user's new attributesnewPath
- the normalized real pathpublic java.lang.String getScheme()
public long getLength()
public long getLastModified()
getLastModified
in class Path
public boolean isDirectory()
isDirectory
in class Path
public boolean canRead()
public boolean canWrite()
public java.lang.String[] list() throws java.io.IOException
public StreamImpl openReadImpl() throws java.io.IOException
openReadImpl
in class Path
java.io.IOException