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:
TextWriterDoubleDoublePair, TextWriterObjectArray, TextWriterObjectComment, TextWriterObjectInline, TextWriterPair, TextWriterTextWriteable, TextWriterTriple, TextWriterVector

public abstract class TextWriterWriterInterface<O>
extends Object

Base class for object writers.


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.4.0 (2011-09-20_1324)