public static interface SSHClient.SecureFileTransfer
| Modifier and Type | Method and Description |
|---|---|
String |
get(String file)
Get a file from a remote peer.
|
default void |
put(String buffer,
String file)
Put a file with default permissions on a remote peer.
|
void |
put(String buffer,
String file,
int mode)
Put a file on a remote peer.
|
String get(String file) throws IOException
file - - File name including pathIOExceptionvoid put(String buffer, String file, int mode) throws IOException
buffer - - The content to put in the remote filefile - - The remote file name including path.mode - - File permissionsIOExceptiondefault void put(String buffer, String file) throws IOException
buffer - - The content to put in the remote filefile - - The remote file name including path.mode - - File permissionsIOException