step.io
Class StepSerialOutput

java.lang.Object
  |
  +--step.io.StepSerialOutput
All Implemented Interfaces:
StepRecordOutput

public class StepSerialOutput
extends Object
implements StepRecordOutput

An output stream that uses Java's serialization mechanism.

See Also:
StepRecord, StepSerialInput

Constructor Summary
StepSerialOutput(ObjectOutput output)
          Create a STEP record output stream from a Java object output stream.
 
Method Summary
 void close()
          Close this output stream.
 void flush()
          Flush this output stream.
 void writeRecord(StepRecord record)
          Write a STEP record to the object output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepSerialOutput

public StepSerialOutput(ObjectOutput output)
Create a STEP record output stream from a Java object output stream.

Method Detail

writeRecord

public void writeRecord(StepRecord record)
                 throws IOException
Write a STEP record to the object output stream.

Specified by:
writeRecord in interface StepRecordOutput
Throws:
IOException - if any of the usual I/O related exceptions occur.

flush

public void flush()
           throws IOException
Flush this output stream.

Specified by:
flush in interface StepRecordOutput
IOException

close

public void close()
           throws IOException
Close this output stream.

Specified by:
close in interface StepRecordOutput
IOException