step.encoding
Interface EncodeContext

All Known Implementing Classes:
StepEncodedOutput.RecordContext, StepEncodedOutput.SizeContext

public interface EncodeContext

An entity that maintains the outgoing stream of data being encoded.

The main purpose of the context is to implement a mechanism for automatically packing data and meta-data into a MetaRecord.

See Also:
Encoder, DecodeContext

Method Summary
 void metaWrite(MetaEvent e)
          Write meta-data at the current position in the output context.
 void write(Object o)
          Write a normal data object to the output context.
 

Method Detail

write

public void write(Object o)
           throws IOException
Write a normal data object to the output context. The object is usually a byte[], however it may be any object agreed upon by the implementation and some Encoder.

Parameters:
o - the object to write, generally a byte[].
Throws:
ClassCastException - if the context is unable to write objects of the given type.
IOException - if the write operation failed.

metaWrite

public void metaWrite(MetaEvent e)
               throws IOException
Write meta-data at the current position in the output context.

Throws:
IOException - if the write operation failed.