SetDownloadStream Method
Sets the stream to which the downloaded data from the server will be written.
Syntax
public void setDownloadStream(java.io.OutputStream downloadStream);
Remarks
If a download stream is set before the GetObject method is called, the downloaded data will be written to the stream. The stream should be open and normally set to position 0.
Note: SetDownloadStream and LocalFile will reset the other.