Suggestion for API design about stream
<p>Need to design an API method whihc take OutputStream as a parameter. </p>

<p>Is it a good practice to close the stream inside the API method or let the caller close it?</p>

<pre><code>test(OutputStream os) {

os.close() //???
}
</code></pre>
