de.lmu.ifi.dbs.elki.result.textwriter
Interface StreamFactory
- All Known Implementing Classes:
- MultipleFilesOutput, SingleStreamOutput
public interface StreamFactory
Interface for output handling (single file, multiple files, ...)
- Author:
- Erich Schubert
openStream
PrintStream openStream(String label)
throws IOException
- Retrieve a print stream for output using the given label.
Note that multiple labels MAY result in the same PrintStream, so you
should be printing to only one stream at a time to avoid mixing outputs.
- Parameters:
label
- Output label.
- Returns:
- stream object for the given label
- Throws:
IOException
- on IO error
closeAllStreams
void closeAllStreams()
- Close (and forget) all streams the factory has opened.