SetDownloadStream Method

Sets the stream to which the downloaded data from the server will be written.


public void setDownloadStream( downloadStream);


If a download stream is set before the GetResource method is called, the downloaded data will be written to the stream. The stream should be open and normally set to position 0.

The class will automatically close this stream if CloseStreamAfterTransfer is true (default). If the stream is closed, you will need to call SetDownloadStream again before calling GetResource again.

The downloaded content will be written starting at the current position in the stream.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Java Edition - Version 20.0 [Build 8166]