|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.otfeed.support.SimpleDataWriter
public class SimpleDataWriter
Class that writes events to a PrintWriter (defaults to
terminal), using Java's toStirng()
formatting.
Constructor Summary | |
---|---|
SimpleDataWriter()
|
Method Summary | |
---|---|
void |
close()
Closes stream. |
java.io.PrintWriter |
getPrintWriter()
Determines the output destination. |
void |
setPrintWriter(java.io.PrintWriter val)
Sets the output destination. |
void |
writeData(java.lang.String id,
java.lang.Object data)
Writes data out, including optional id string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleDataWriter()
Method Detail |
---|
public java.io.PrintWriter getPrintWriter()
public void setPrintWriter(java.io.PrintWriter val)
val
- destination.public void writeData(java.lang.String id, java.lang.Object data)
IDataWriter
writeData
in interface IDataWriter
id
- string, identifying the quote source.data
- quote data.public void close()
IDataWriter
close
in interface IDataWriter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |