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[]
handle
protected org.slf4j.Logger
log
Loggerprotected java.lang.String
path
protected SFTPEngine
requester
-
Constructor Summary
Constructors Modifier Constructor Description protected
RemoteResource(SFTPEngine requester, java.lang.String path, byte[] handle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.lang.String
getPath()
protected Request
newRequest(PacketType type)
java.lang.String
toString()
-
-
-
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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-