|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
.
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 |
public void write(Object o) throws IOException
byte[]
, however it may
be any object agreed upon by the implementation and some
Encoder
.
o
- the object to write, generally a byte[]
.
ClassCastException
- if the context is unable to write objects
of the given type.
IOException
- if the write operation failed.public void metaWrite(MetaEvent e) throws IOException
IOException
- if the write operation failed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |