public interface BSONDecoder
| Modifier and Type | Method and Description |
|---|---|
int |
decode(byte[] bytes,
BSONCallback callback)
Decode a single BSON object into the given callback from the given byte array.
|
int |
decode(InputStream in,
BSONCallback callback)
Decode a single BSON object into the given callback from the given input stream.
|
BSONObject |
readObject(byte[] bytes)
Read a single BSON object from the given bytes.
|
BSONObject |
readObject(InputStream in)
Read a single BSON object from the given input stream.
|
BSONObject readObject(byte[] bytes)
bytes - the bytes in BSON formatBSONObject readObject(InputStream in) throws IOException
in - the input stream in BSON formatIOException - if there's a problem reading the object from the InputStreamint decode(byte[] bytes,
BSONCallback callback)
bytes - the bytes in BSON formatcallback - the callbackint decode(InputStream in, BSONCallback callback) throws IOException
in - the input stream in BSON formatcallback - the callbackIOException - if there's a problem reading from the InputStream