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, ...)


Method Summary
 void closeAllStreams()
          Close (and forget) all streams the factory has opened.
 PrintStream openStream(String label)
          Retrieve a print stream for output using the given label.
 

Method Detail

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.


Release 0.4.0 (2011-09-20_1324)