Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

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

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

closeAllStreams

void closeAllStreams()
Close (and forget) all streams the factory has opened.


Release 0.2 (2009-07-06_1820)