public class BasicBSONDecoder extends java.lang.Object implements BSONDecoder
| Modifier and Type | Class and Description |
|---|---|
protected class |
BasicBSONDecoder.BSONInput |
| Modifier and Type | Field and Description |
|---|---|
protected BSONCallback |
_callback |
protected BasicBSONDecoder.BSONInput |
_in |
protected int |
_len |
protected int |
_pos |
| Constructor and Description |
|---|
BasicBSONDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_binary(java.lang.String name) |
int |
decode(byte[] b,
BSONCallback callback) |
int |
decode(java.io.InputStream in,
BSONCallback callback) |
BSONObject |
readObject(byte[] b) |
BSONObject |
readObject(java.io.InputStream in) |
protected BasicBSONDecoder.BSONInput _in
protected BSONCallback _callback
protected int _pos
protected int _len
public BSONObject readObject(byte[] b)
readObject in interface BSONDecoderpublic BSONObject readObject(java.io.InputStream in) throws java.io.IOException
readObject in interface BSONDecoderjava.io.IOExceptionpublic int decode(byte[] b,
BSONCallback callback)
decode in interface BSONDecoderpublic int decode(java.io.InputStream in,
BSONCallback callback)
throws java.io.IOException
decode in interface BSONDecoderjava.io.IOExceptionprotected void _binary(java.lang.String name)
throws java.io.IOException
java.io.IOException