Do I need to close PipedInputStream and PipedOutputStream

Viewed 2286

I'm writing a simple Swing GUI which includes a text field which prints debug messages and exceptions. I currently have it set up where I write to a PipedOutputStream, and I have a daemon thread which reads from the connected PipedInputStream and writes to the text area.

While I was trying to figure out how to close the stream in my daemon thread, I came across another answer which says that daemon threads should not hold any resources. Do piped streams count? Do they need to be closed?

1 Answers
Related