public interface StreamFactory
Modifier and Type | Method and Description |
---|---|
void |
closeStream(PrintStream stream)
Close the given output stream (Note: when writing to a single stream
output, it will actually not be closed!)
|
PrintStream |
openStream(String label)
Retrieve a print stream for output using the given label.
|
PrintStream openStream(String label) throws IOException
label
- Output label.IOException
- on IO errorvoid closeStream(PrintStream stream)
stream
- Stream to close