public interface StreamingWagon extends Wagon
| Modifier and Type | Method and Description |
|---|---|
boolean |
getIfNewerToStream(String resourceName,
OutputStream stream,
long timestamp)
Downloads specified resource from the repository if it was modified since specified date.
|
void |
getToStream(String resourceName,
OutputStream stream)
Downloads specified resource from the repository to given output stream.
|
void |
putFromStream(InputStream stream,
String destination)
Copy from a local input stream to remote.
|
void |
putFromStream(InputStream stream,
String destination,
long contentLength,
long lastModified)
Copy from a local input stream to remote.
|
addSessionListener, addTransferListener, connect, connect, connect, connect, connect, connect, disconnect, get, getFileList, getIfNewer, getRepository, getTimeout, hasSessionListener, hasTransferListener, isInteractive, openConnection, put, putDirectory, removeSessionListener, removeTransferListener, resourceExists, setInteractive, setTimeout, supportsDirectoryCopyvoid getToStream(String resourceName, OutputStream stream) throws ResourceDoesNotExistException, TransferFailedException, AuthorizationException
resourceName - destination - TransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionAuthorizationExceptionboolean getIfNewerToStream(String resourceName, OutputStream stream, long timestamp) throws ResourceDoesNotExistException, TransferFailedException, AuthorizationException
resourceName - destination - timestamp - true if newer resource has been downloaded, false if resource in the
repository is older or has the same age.TransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionAuthorizationExceptionvoid putFromStream(InputStream stream, String destination) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
source - the local filedestination - the remote destinationTransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionvoid putFromStream(InputStream stream, String destination, long contentLength, long lastModified) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
source - the local filedestination - the remote destinationTransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionCopyright © 2003–2015. All rights reserved.