public interface StreamingWagon extends Wagon
| Modifier and Type | Method and Description |
|---|---|
boolean |
getIfNewerToStream(java.lang.String resourceName,
java.io.OutputStream stream,
long timestamp)
Downloads specified resource from the repository if it was modified since specified date.
|
void |
getToStream(java.lang.String resourceName,
java.io.OutputStream stream)
Downloads specified resource from the repository to given output stream.
|
void |
putFromStream(java.io.InputStream stream,
java.lang.String destination)
Copy from a local input stream to remote.
|
void |
putFromStream(java.io.InputStream stream,
java.lang.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(java.lang.String resourceName,
java.io.OutputStream stream)
throws ResourceDoesNotExistException,
TransferFailedException,
AuthorizationException
resourceName - destination - TransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionAuthorizationExceptionboolean getIfNewerToStream(java.lang.String resourceName,
java.io.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(java.io.InputStream stream,
java.lang.String destination)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationException
source - the local filedestination - the remote destinationTransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionvoid putFromStream(java.io.InputStream stream,
java.lang.String destination,
long contentLength,
long lastModified)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationException
source - the local filedestination - the remote destinationTransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionCopyright © 2003-2013. All Rights Reserved.