Package net.schmizz.sshj.sftp
Class RemoteResource
- java.lang.Object
-
- net.schmizz.sshj.sftp.RemoteResource
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
RemoteDirectory,RemoteFile
public abstract class RemoteResource extends java.lang.Object implements java.io.Closeable
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]handleprotected org.slf4j.LoggerlogLoggerprotected java.lang.Stringpathprotected SFTPEnginerequester
-
Constructor Summary
Constructors Modifier Constructor Description protectedRemoteResource(SFTPEngine requester, java.lang.String path, byte[] handle)
-
Method Summary
Modifier and Type Method Description voidclose()java.lang.StringgetPath()protected RequestnewRequest(PacketType type)java.lang.StringtoString()
-
-
-
Field Detail
-
log
protected final org.slf4j.Logger log
Logger
-
requester
protected final SFTPEngine requester
-
path
protected final java.lang.String path
-
handle
protected final byte[] handle
-
-
Constructor Detail
-
RemoteResource
protected RemoteResource(SFTPEngine requester, java.lang.String path, byte[] handle)
-
-
Method Detail
-
getPath
public java.lang.String getPath()
-
newRequest
protected Request newRequest(PacketType type)
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-