I could not find clarification of this in the documentation.
But when we have a Process
object and call getInputStream()
,
Do we get a new stream that we should explicitly close when we are done with it? or do we get the stream that is already there, associated with the Process, that we should not close, but the Process would take care of closing it?
Basically, how should we interact with the stream we get from Process.getInputStream()
? close or not to close?