Logo Search packages:      
Sourcecode: jenkins-trilead-ssh2 version File versions  Download package

Classes | Public Member Functions | Package Attributes | Private Member Functions

com::trilead::ssh2::SCPClient Class Reference

Collaboration diagram for com::trilead::ssh2::SCPClient:
Collaboration graph
[legend]

List of all members.

Classes

class  LenNamePair

Public Member Functions

void get (String remoteFile, String localTargetDirectory) throws IOException
void get (String remoteFile, OutputStream target) throws IOException
void get (String remoteFiles[], String localTargetDirectory) throws IOException
void put (String localFile, String remoteFileName, String remoteTargetDirectory, String mode) throws IOException
void put (String[] localFiles, String[] remoteFiles, String remoteTargetDirectory, String mode) throws IOException
void put (byte[] data, String remoteFileName, String remoteTargetDirectory) throws IOException
void put (byte[] data, String remoteFileName, String remoteTargetDirectory, String mode) throws IOException
void put (String[] localFiles, String remoteTargetDirectory) throws IOException
void put (String localFile, String remoteTargetDirectory) throws IOException
void put (String[] localFiles, String remoteTargetDirectory, String mode) throws IOException
void put (String localFile, String remoteTargetDirectory, String mode) throws IOException
 SCPClient (Connection conn)

Package Attributes

Connection conn

Private Member Functions

void get (String remoteFiles[], OutputStream[] targets) throws IOException
LenNamePair parseCLine (String line) throws IOException
void readResponse (InputStream is) throws IOException
void receiveFiles (Session sess, OutputStream[] targets) throws IOException
void receiveFiles (Session sess, String[] files, String target) throws IOException
String receiveLine (InputStream is) throws IOException
void sendBytes (Session sess, byte[] data, String fileName, String mode) throws IOException
void sendFiles (Session sess, String[] files, String[] remoteFiles, String mode) throws IOException

Detailed Description

A very basic SCPClient that can be used to copy files from/to the SSH-2 server. On the server side, the "scp" program must be in the PATH.

This scp client is thread safe - you can download (and upload) different sets of files concurrently without any troubles. The SCPClient is actually mapping every request to a distinct Session.

Author:
Christian Plattner, plattner@trilead.com
Version:
Id:
SCPClient.java,v 1.1 2007/10/15 12:49:56 cplattne Exp

Definition at line 25 of file SCPClient.java.


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index