|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.maverick.scp.ScpClientIO
Implements the IO of a Secure Copy (SCP) client. This has no dependencies upon Files.
| Nested Class Summary | |
class |
ScpClientIO.ScpEngineIO
Implements an SCP engine. |
| Field Summary | |
protected SshClient |
ssh
|
| Constructor Summary | |
ScpClientIO(SshClient ssh)
Creates an SCP client. |
|
| Method Summary | |
java.io.InputStream |
get(java.lang.String remoteFile)
Gets a remote file as a java.io.InputStream. |
java.io.InputStream |
get(java.lang.String remoteFile,
FileTransferProgress progress)
Gets a remote file as a java.io.InputStream. |
void |
put(java.io.InputStream in,
long length,
java.lang.String localFile,
java.lang.String remoteFile)
Uploads a java.io.InputStream to a remote server as a file. |
void |
put(java.io.InputStream in,
long length,
java.lang.String localFile,
java.lang.String remoteFile,
FileTransferProgress progress)
Uploads a java.io.InputStream to a remote server as a file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected SshClient ssh
| Constructor Detail |
public ScpClientIO(SshClient ssh)
Creates an SCP client.
ssh - a connected SshClient| Method Detail |
public void put(java.io.InputStream in,
long length,
java.lang.String localFile,
java.lang.String remoteFile)
throws SshException,
ChannelOpenException
Uploads a java.io.InputStream to a remote server as a file.
You must supply the correct number of bytes that will
be written.
in - stream providing filelength - number of bytes that will be writtenlocalFile - local file nameremoteFile - remote file name
java.io.IOException - on any error
SshException
ChannelOpenException
public void put(java.io.InputStream in,
long length,
java.lang.String localFile,
java.lang.String remoteFile,
FileTransferProgress progress)
throws SshException,
ChannelOpenException
Uploads a java.io.InputStream to a remote server as a file.
You must supply the correct number of bytes that will
be written.
in - stream providing filelength - number of bytes that will be writtenlocalFile - local file nameremoteFile - remote file nameprogress - a file transfer progress implementation
java.io.IOException - on any error
SshException
ChannelOpenException
public java.io.InputStream get(java.lang.String remoteFile)
throws SshException,
ChannelOpenException
Gets a remote file as a java.io.InputStream.
remoteFile - remote file name
java.io.IOException - on any error
SshException
ChannelOpenException
public java.io.InputStream get(java.lang.String remoteFile,
FileTransferProgress progress)
throws SshException,
ChannelOpenException
Gets a remote file as a java.io.InputStream.
remoteFile - remote file nameprogress - a file transfer progress implementation.
java.io.IOException - on any error
SshException
ChannelOpenException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||