public interface FileTransferClient extends TransactionalResource
| Modifier and Type | Method and Description |
|---|---|
void |
cd(String targetPath)
Method to change directory
|
void |
deleteRemoteDirectory(String directoryPath,
boolean recurse)
Method to delete a remote directory
|
void |
deleteRemoteFile(String filename)
Method to delete a remote file
|
void |
disconnect()
TODO add comment
|
BaseFileTransferMappedRecord |
get(ClientListEntry clientListEntry)
Gets a BaseFileTransferMappedRecord (a 'File') given a ClientListEntry
|
BaseFileTransferMappedRecord |
get(String filePath)
Gets a BaseFileTransferMappedRecord (a 'File') given a filePath
|
void |
get(String filePath,
OutputStream outputStream)
Get a file as a OutputStream
|
void |
get(String filePath,
OutputStream outputStream,
int resume,
long offset)
Get a file as an OutputStream given an offset and a resume flag
|
InputStream |
getAsInputStream(String filePath)
Utilises the underlying API to return an InputStream as the result of the
GET operation
|
InputStream |
getContentAsStream(ClientListEntry entry)
Get the content of a ClientListFileEntry (a 'File') as an InputStream
|
List<ClientListEntry> |
ls(String path)
Method to return a list of the contents of a directory
|
void |
mkdir(String directory)
Allow the creation of directories.
|
void |
put(String name,
byte[] content)
Method to put a content on to a File Tansfer system
|
void |
putWithOutputStream(String fileName,
InputStream inputstream)
Method to put the file using an OutputStream
|
String |
pwd()
Method to list what directory you are currently in
|
void |
rename(String currentPath,
String newPath)
Method to rename a path (a 'File')
|
ensureConnectionvoid cd(String targetPath) throws ClientCommandCdException
targetPath - ClientCommandCdExceptionvoid deleteRemoteDirectory(String directoryPath, boolean recurse) throws ClientException, ClientCommandLsException
directoryPath - recurse - (whether to delete recursively or not)ClientExceptionClientCommandLsExceptionvoid deleteRemoteFile(String filename) throws ClientException
filename - ClientExceptionBaseFileTransferMappedRecord get(ClientListEntry clientListEntry) throws ClientCommandGetException
clientListEntry - ClientCommandGetExceptionBaseFileTransferMappedRecord get(String filePath) throws ClientCommandGetException
filePath - ClientCommandGetExceptionvoid get(String filePath, OutputStream outputStream) throws ClientCommandGetException
filePath - outputStream - ClientCommandGetExceptionvoid get(String filePath, OutputStream outputStream, int resume, long offset) throws ClientCommandGetException
filePath - outputStream - resume - offset - ClientCommandGetExceptionInputStream getAsInputStream(String filePath) throws ClientCommandGetException
filePath - ClientCommandGetExceptionInputStream getContentAsStream(ClientListEntry entry) throws ClientCommandGetException
entry - ClientCommandGetExceptionList<ClientListEntry> ls(String path) throws ClientCommandLsException, URISyntaxException
path - ClientCommandLsExceptionURISyntaxExceptionvoid put(String name, byte[] content) throws ClientCommandPutException
name - (of the 'File')content - (of the 'File')ClientCommandPutExceptionvoid putWithOutputStream(String fileName, InputStream inputstream) throws ClientCommandPutException, ClientCommandLsException, ClientCommandMkdirException
fileName - inputstream - ClientCommandPutExceptionClientCommandLsExceptionClientCommandMkdirExceptionString pwd() throws ClientCommandPwdException
ClientCommandPwdExceptionvoid rename(String currentPath, String newPath) throws ClientCommandRenameException
currentPath - newPath - ClientCommandRenameExceptionvoid disconnect()
void mkdir(String directory) throws ClientCommandMkdirException
directory - ClientCommandMkdirExceptionCopyright © 2007-2017 Ikasan. All Rights Reserved.