|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--step.io.StepTextOutput
Write STEP objects as text, one per line.
NOTE: This writer assumes that all written objects (and their fields) have an
appropriate definition for toString()
.
StepRecord
Constructor Summary | |
StepTextOutput(PrintWriter output)
Create a STEP text output stream which prints to the given output stream. |
Method Summary | |
(package private) static String |
asText(StepRecord record)
|
void |
close()
Close this output stream. |
void |
flush()
Flush this output stream. |
void |
writeRecord(StepRecord record)
Write a STEP record to this output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StepTextOutput(PrintWriter output)
Method Detail |
public void writeRecord(StepRecord record) throws IOException
StepRecordOutput
NOTE: The writing of some records may generate meta-data that is inserted into the data stream.
writeRecord
in interface StepRecordOutput
IOException
- never.
The underlying PrintWriter
does not throw on writes.public void close() throws IOException
StepRecordOutput
close
in interface StepRecordOutput
IOException
public void flush() throws IOException
StepRecordOutput
flush
in interface StepRecordOutput
IOException
static String asText(StepRecord record)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |