Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.result.textwriter
Class TextWriterWriterInterface<O>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.result.textwriter.TextWriterWriterInterface<O>
Type Parameters:
O - Object type (usually the class itself)
Direct Known Subclasses:
TextWriterDatabaseObjectInline, TextWriterObjectComment, TextWriterObjectInline, TextWriterPair, TextWriterTextWriteable, TextWriterTriple, TextWriterVector

public abstract class TextWriterWriterInterface<O>
extends Object

Base class for object writers.

Author:
Erich Schubert

Constructor Summary
TextWriterWriterInterface()
           
 
Method Summary
abstract  void write(TextWriterStream out, String label, O object)
          Write a given object to the output stream.
 void writeObject(TextWriterStream out, String label, Object object)
          Non-type-checking version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextWriterWriterInterface

public TextWriterWriterInterface()
Method Detail

write

public abstract void write(TextWriterStream out,
                           String label,
                           O object)
                    throws UnableToComplyException,
                           IOException
Write a given object to the output stream.

Parameters:
out - Output stream
label - Label to prefix
object - object to output
Throws:
UnableToComplyException - on errors
IOException - on IO errors

writeObject

public final void writeObject(TextWriterStream out,
                              String label,
                              Object object)
                       throws UnableToComplyException,
                              IOException
Non-type-checking version.

Parameters:
out - Output stream
label - Label to prefix
object - object to output
Throws:
UnableToComplyException - on errors
IOException - on IO errors

Release 0.3 (2010-03-31_1612)