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, setUserPathcacheCopy, 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, writeToStreampublic RemotePath(java.lang.String url,
Path dbDirectory,
java.lang.String tableName)
throws java.lang.Exception
url - the remote urljava.lang.Exceptionprotected 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 FilesystemPathuserPath - 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 Pathpublic boolean isDirectory()
isDirectory in class Pathpublic boolean canRead()
public boolean canWrite()
public java.lang.String[] list()
throws java.io.IOException
public StreamImpl openReadImpl() throws java.io.IOException
openReadImpl in class Pathjava.io.IOException