public class ZSyncClient extends Object implements FileSyncer
| Constructor and Description |
|---|
ZSyncClient(TransferService transferService) |
| Modifier and Type | Method and Description |
|---|---|
File |
download(Host host,
Path remotePath,
File localFile,
ProgressListener listener) |
int |
getBlocksize() |
void |
setBlocksize(int blocksize) |
void |
upload(Host host,
File localcopy,
Path remotePath,
ProgressListener listener) |
public ZSyncClient(TransferService transferService)
public File download(Host host, Path remotePath, File localFile, ProgressListener listener) throws IOException, NotFoundException, HttpException, NotAuthorizedException, BadRequestException, ConflictException
download in interface FileSyncerhost - remotePath - downloadTo - IOExceptionHttpExceptionNotFoundException - - if the remote file does not existNotAuthorizedExceptionBadRequestExceptionConflictExceptionpublic void upload(Host host, File localcopy, Path remotePath, ProgressListener listener) throws IOException, NotFoundException, NotAuthorizedException, ConflictException
upload in interface FileSyncerhost - localcopy - remotePath - IOExceptionHttpExceptionNotFoundExceptionNotAuthorizedExceptionConflictExceptionpublic int getBlocksize()
public void setBlocksize(int blocksize)
Copyright © 2021 McEvoy Software Ltd. All rights reserved.