Package | Description |
---|---|
com.mongodb |
Main package with core files.
|
com.mongodb.util |
Package containing misc utils.
|
org.bson |
Contains the base BSON classes and Encoder/Decoder.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DBCallback
The DB callback interface.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultDBCallback
This class overrides BasicBSONCallback to implement some extra features specific to the Database.
|
class |
LazyDBCallback
A
BSONCallback for the creation of LazyDBObject and LazyDBList instances. |
class |
LazyWriteableDBCallback
Deprecated.
This class will be removed in a future release. There is no replacement.
|
Modifier and Type | Class and Description |
---|---|
class |
JSONCallback
Converts JSON to DBObjects and vice versa.
|
Modifier and Type | Method and Description |
---|---|
static Object |
JSON.parse(String s,
BSONCallback c)
Parses a JSON string and constructs a corresponding Java object by calling the methods of a
BSONCallback during parsing. |
Modifier and Type | Class and Description |
---|---|
class |
BasicBSONCallback
An implementation of
BsonCallback that creates an instance of BSONObject. |
class |
EmptyBSONCallback
Convenience implementation of BSONCallback that throws
UnsupportedOperationException for all methods. |
class |
LazyBSONCallback
A
BSONCallback for creation of LazyBSONObject and LazyBSONList instances. |
Modifier and Type | Field and Description |
---|---|
protected BSONCallback |
BasicBSONDecoder._callback
Deprecated.
This field should not be a part of API.
Please see the class-level documentation for a migration instructions.
|
Modifier and Type | Method and Description |
---|---|
BSONCallback |
EmptyBSONCallback.createBSONCallback() |
BSONCallback |
BSONCallback.createBSONCallback()
Factory method for BSONCallbacks.
|
BSONCallback |
BasicBSONCallback.createBSONCallback() |
Modifier and Type | Method and Description |
---|---|
int |
NewBSONDecoder.decode(byte[] pData,
BSONCallback pCallback)
Deprecated.
|
int |
LazyBSONDecoder.decode(byte[] b,
BSONCallback callback) |
int |
BSONDecoder.decode(byte[] bytes,
BSONCallback callback)
Decode a single BSON object into the given callback from the given byte array.
|
int |
BasicBSONDecoder.decode(byte[] b,
BSONCallback callback) |
int |
NewBSONDecoder.decode(InputStream pIn,
BSONCallback pCallback)
Deprecated.
|
int |
LazyBSONDecoder.decode(InputStream in,
BSONCallback callback) |
int |
BSONDecoder.decode(InputStream in,
BSONCallback callback)
Decode a single BSON object into the given callback from the given input stream.
|
int |
BasicBSONDecoder.decode(InputStream in,
BSONCallback callback) |