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(java.io.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(java.io.InputStream in)
Read a single BSON object from the given input stream.
|
BSONObject readObject(byte[] bytes)
bytes - the bytes in BSON formatBSONObject readObject(java.io.InputStream in) throws java.io.IOException
in - the input stream in BSON formatjava.io.IOException - 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(java.io.InputStream in,
BSONCallback callback)
throws java.io.IOException
in - the input stream in BSON formatcallback - the callbackjava.io.IOException - if there's a problem reading from the InputStreamCopyright © 2010 - 2023 Adobe. All Rights Reserved