public class LibsshSCPClient extends AbstractSCPClient implements SshSCPClient
| Constructor and Description |
|---|
LibsshSCPClient(SshLibrary library,
SshLibrary.ssh_session libSshSession) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doPut(java.lang.String remotePath,
java.lang.String mode,
java.io.File sourceFile,
boolean recursive)
Sub-classes should implement this to perform the actual upload of the
file(s).
|
void |
get(java.lang.String remoteFilePath,
java.io.File destinationFile,
boolean recursive)
Retrieve file(s) from a remote path, placing it in the destination file
(or directory).
|
protected void |
onClose() |
protected void |
onOpen() |
putaddFileTransferListener, fireFileTransferFinished, fireFileTransferProgressed, fireFileTransferStarted, removeFileTransferListenercheckOpen, close, isOpen, openaddListener, fireClosed, fireClosing, fireOpened, getListeners, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitputaddFileTransferListener, removeFileTransferListeneraddListener, close, isOpen, open, removeListenerpublic LibsshSCPClient(SshLibrary library, SshLibrary.ssh_session libSshSession)
protected void onClose()
throws SshException
onClose in class AbstractSCPClientSshExceptionprotected void onOpen()
throws SshException
onOpen in class AbstractSCPClientSshExceptionpublic void get(java.lang.String remoteFilePath,
java.io.File destinationFile,
boolean recursive)
throws SshException
SshSCPClientget in interface SshSCPClientremoteFilePath - remote file pathdestinationFile - destination file or directoryrecursive - recursively copy this path and all of it's children to
the destination directorySshExceptionprotected void doPut(java.lang.String remotePath,
java.lang.String mode,
java.io.File sourceFile,
boolean recursive)
throws SshException
AbstractSCPClientdoPut in class AbstractSCPClientremotePath - remote path to upload files tomode - mode stringsourceFile - local file to copyrecursive - recursiveSshException - on any errorCopyright © 2018. All rights reserved.