step.io
Class StepEncodedOutput.SizeContext

java.lang.Object
  |
  +--step.io.StepEncodedOutput.SizeContext
All Implemented Interfaces:
EncodeContext
Enclosing class:
StepEncodedOutput

public class StepEncodedOutput.SizeContext
extends Object
implements EncodeContext


Constructor Summary
StepEncodedOutput.SizeContext()
           
 
Method Summary
 byte[] close()
           
 void metaWrite(MetaEvent event)
          Write meta-data at the current position in the output context.
 void write(Object o)
          Write a normal data object to the output context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepEncodedOutput.SizeContext

public StepEncodedOutput.SizeContext()
Method Detail

write

public void write(Object o)
           throws IOException
Description copied from interface: EncodeContext
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.

Specified by:
write in interface EncodeContext
Parameters:
o - the object to write, generally a byte[].
Throws:
IOException - if the write operation failed.

close

public byte[] close()

metaWrite

public void metaWrite(MetaEvent event)
               throws IOException
Description copied from interface: EncodeContext
Write meta-data at the current position in the output context.

Specified by:
metaWrite in interface EncodeContext
Throws:
UnsupportedOperationException - always
IOException - if the write operation failed.