Path.FileChannelFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONNECT_TIMEOUT |
_pathSeparatorChar, _schemeMap, _separatorChar, L
Constructor and Description |
---|
TcpPath(TcpPath root,
java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> newAttributes,
java.lang.String host,
int port) |
Modifier and Type | Method and Description |
---|---|
protected Path |
cacheCopy()
Copy for caching.
|
protected TcpPath |
create(TcpPath root,
java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> newAttributes,
java.lang.String host,
int port) |
java.lang.String |
getHost()
Returns the hostname
|
java.lang.String |
getPath()
Returns the path.
|
int |
getPort()
Returns the port.
|
java.lang.String |
getScheme()
Returns the url scheme
|
java.net.SocketAddress |
getSocketAddress() |
java.lang.String |
getURL()
Returns the full url for the given path.
|
StreamImpl |
openReadImpl() |
StreamImpl |
openReadWriteImpl() |
Path |
schemeWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> newAttributes,
java.lang.String uri,
int offset)
Lookup the new path assuming we're the scheme root.
|
java.lang.String |
toString() |
bind, canExecute, canRead, canWrite, changeGroup, changeGroup, changeOwner, changeOwner, chmod, clearStatusCache, compareTo, copy, createDepend, createLink, createNewFile, createRoot, createRoot, createTempFile, equals, escapeURL, exists, fileChannelFactory, getAttribute, getAttributeNames, getBlockCount, getBlockSize, getCache, getCertificates, getContentType, getCrc64, getCreateTime, getDevice, getDeviceId, getDiskSpaceFree, getDiskSpaceTotal, getFileSeparatorChar, getFullPath, getGroup, getInode, getLastAccessTime, getLastModified, getLastStatusChangeTime, getLength, getMode, getNativePath, getNewlineString, getNumberOfLinks, getObject, getOwner, getParent, getPathSeparatorChar, 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, openAppendImpl, openFileRandomAccess, openMemoryMappedFile, openRandomAccess, openRead, openReadWrite, openReadWrite, openReadWrite, openWrite, openWriteImpl, putCache, readLink, realPath, remove, removeAll, renameTo, renameTo, scanScheme, sendfile, setDefaultSchemeMap, setExecutable, setLastModified, setObject, setTestWindows, setUserPath, setValue, truncate, truncate, unbind, unwrap, writeToStream, writeToStream
public static final java.lang.String CONNECT_TIMEOUT
public TcpPath(TcpPath root, java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> newAttributes, java.lang.String host, int port)
public Path schemeWalk(java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> newAttributes, java.lang.String uri, int offset)
schemeWalk
in class Path
userPath
- the user's lookup() path.newAttributes
- the attributes for the new path.uri
- the lookup() pathoffset
- offset into newPath to start lookup.protected TcpPath create(TcpPath root, java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> newAttributes, java.lang.String host, int port)
public java.lang.String getScheme()
Path
public java.lang.String getURL()
Path
public java.lang.String getPath()
Path
public java.lang.String getHost()
Path
public int getPort()
Path
public java.net.SocketAddress getSocketAddress()
public StreamImpl openReadImpl() throws java.io.IOException
openReadImpl
in class Path
java.io.IOException
public StreamImpl openReadWriteImpl() throws java.io.IOException
openReadWriteImpl
in class Path
java.io.IOException