|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An entity that maintains the incoming stream of data to be decoded.
The main purpose of the context is to implement a data stack for unpacking
MetaRecord
s that automatically applies MetaEvent
s at the
correct time in the decoding proccess. Normally, the context simply defers
to some underlying InputStream
to fill the read requests.
Encoder
,
EncodeContext
Method Summary | |
Object |
read(Object request)
Request data from the context. |
Method Detail |
public Object read(Object request) throws IOException
byte[]
to be filled, however it may
be any encapsulated request agreed upon by the implementation and some
Encoder
.
request
- an object representing a request for data,
generally a byte[]
.
ClassCastException
- if the type of request cannot be handled.
IOException
- if an I/O error occurred.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |