Package elki.result.textwriter
Class TextWriterWriterInterface<O>
- java.lang.Object
-
- elki.result.textwriter.TextWriterWriterInterface<O>
-
- Type Parameters:
O
- Object type (usually the class itself)
- Direct Known Subclasses:
TextWriterConfusionMatrixResult
,TextWriterDoubleArray
,TextWriterDoubleDoublePair
,TextWriterIgnore
,TextWriterIntArray
,TextWriterObjectArray
,TextWriterObjectComment
,TextWriterObjectInline
,TextWriterPair
,TextWriterTextWriteable
,TextWriterXYCurve
public abstract class TextWriterWriterInterface<O> extends java.lang.Object
Base class for object writers.- Since:
- 0.2
- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description TextWriterWriterInterface()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
write(TextWriterStream out, java.lang.String label, O object)
Write a given object to the output stream.void
writeObject(TextWriterStream out, java.lang.String label, java.lang.Object object)
Non-type-checking version.
-
-
-
Method Detail
-
write
public abstract void write(TextWriterStream out, java.lang.String label, O object) throws java.io.IOException
Write a given object to the output stream.- Parameters:
out
- Output streamlabel
- Label to prefixobject
- object to output- Throws:
java.io.IOException
- on IO errors
-
writeObject
public final void writeObject(TextWriterStream out, java.lang.String label, java.lang.Object object) throws java.io.IOException
Non-type-checking version.- Parameters:
out
- Output streamlabel
- Label to prefixobject
- object to output- Throws:
java.io.IOException
- on IO errors
-
-