SetOutputStream Method
Sets the stream to which the XML will be written.
Syntax
public void setOutputStream(java.io.OutputStream outputStream);
Remarks
This method is used to set the stream to which the XML data will be written. The bean will automatically close this stream if CloseStream is true (default). If the stream is closed, you will need to call SetOutputStream again before writing again.
Note: SetOutputStream and OutputFile will reset the other.