Class OutputStreamDownloadTarget
java.lang.Object
net.sf.basedb.opengrid.filetransfer.AbstractFileTransfer
net.sf.basedb.opengrid.filetransfer.OutputStreamDownloadTarget
- All Implemented Interfaces:
DownloadTarget
public class OutputStreamDownloadTarget extends AbstractFileTransfer implements DownloadTarget
Generic download target implementation that simply wraps an
existing output stream. File metadata about the remote file
will be collected by the
AbstractFileTransfer.getMetadata()
instance.- Since:
- 1.0
- Author:
- nicklas
-
Field Summary
Fields Modifier and Type Field Description private OutputStream
out
-
Constructor Summary
Constructors Constructor Description OutputStreamDownloadTarget(String name, OutputStream out)
-
Method Summary
Modifier and Type Method Description OutputStream
getOutputStream()
Get an ouput stream for writing the file data to the local resource.Methods inherited from class net.sf.basedb.opengrid.filetransfer.AbstractFileTransfer
getMetadata, getName, initMetadata
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sf.basedb.opengrid.filetransfer.DownloadTarget
getMetadata, getName
-
Field Details
-
out
-
-
Constructor Details
-
OutputStreamDownloadTarget
-
-
Method Details
-
getOutputStream
Description copied from interface:DownloadTarget
Get an ouput stream for writing the file data to the local resource.- Specified by:
getOutputStream
in interfaceDownloadTarget
-