Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TIMEOUT |
protected org.slf4j.Logger |
log
Logger
|
static int |
MAX_SUPPORTED_VERSION |
protected int |
operativeVersion |
protected OutputStream |
out |
protected PathHelper |
pathHelper |
protected PacketReader |
reader |
protected long |
reqID |
protected Map<String,String> |
serverExtensions |
protected Session.Subsystem |
sub |
protected int |
timeout |
Constructor and Description |
---|
SFTPEngine(SessionFactory ssh) |
SFTPEngine(SessionFactory ssh,
String pathSep) |
public static final int MAX_SUPPORTED_VERSION
public static final int DEFAULT_TIMEOUT
protected final org.slf4j.Logger log
protected volatile int timeout
protected final PathHelper pathHelper
protected final Session.Subsystem sub
protected final PacketReader reader
protected final OutputStream out
protected long reqID
protected int operativeVersion
public SFTPEngine(SessionFactory ssh) throws SSHException
SSHException
public SFTPEngine(SessionFactory ssh, String pathSep) throws SSHException
SSHException
public SFTPEngine init() throws IOException
IOException
public Session.Subsystem getSubsystem()
public int getOperativeProtocolVersion()
public PathHelper getPathHelper()
getPathHelper
in interface Requester
public Request newRequest(PacketType type)
newRequest
in interface Requester
public Response doRequest(Request req) throws IOException
doRequest
in interface Requester
IOException
public RemoteFile open(String path, Set<OpenMode> modes, FileAttributes fa) throws IOException
IOException
public RemoteFile open(String filename, Set<OpenMode> modes) throws IOException
IOException
public RemoteFile open(String filename) throws IOException
IOException
public RemoteDirectory openDir(String path) throws IOException
IOException
public void setAttributes(String path, FileAttributes attrs) throws IOException
IOException
public String readLink(String path) throws IOException
IOException
public void makeDir(String path, FileAttributes attrs) throws IOException
IOException
public void makeDir(String path) throws IOException
IOException
public void symlink(String linkpath, String targetpath) throws IOException
IOException
public void remove(String filename) throws IOException
IOException
public void removeDir(String path) throws IOException
IOException
public FileAttributes stat(String path) throws IOException
IOException
public FileAttributes lstat(String path) throws IOException
IOException
public void rename(String oldPath, String newPath) throws IOException
IOException
public String canonicalize(String path) throws IOException
IOException
public void setTimeout(int timeout)
public int getTimeout()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
protected FileAttributes stat(PacketType pt, String path) throws IOException
IOException
protected static String readSingleName(Response res) throws IOException
IOException
protected void transmit(SFTPPacket<Request> payload) throws IOException
IOException
Copyright © 2009-2013. All Rights Reserved.