Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.util |
Contains classes that can be used everywhere in the driver, and have no specific domain.
|
org.bson |
Contains the base BSON classes.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DBCallback
The DB callback interface.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultDBCallback
An implementation of DBCallback that decodes into a DBObject.
|
class |
LazyDBCallback
A
BSONCallback for the creation of LazyDBObject and LazyDBList instances. |
Modifier and Type | Class and Description |
---|---|
class |
JSONCallback
Deprecated.
This class has been superseded by to toJson and parse methods on BasicDBObject
|
Modifier and Type | Field and Description |
---|---|
(package private) BSONCallback |
JSONParser._callback |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
JSON.parse(java.lang.String s,
BSONCallback c)
Deprecated.
Parses a JSON string and constructs a corresponding Java object by calling the methods of a
BSONCallback during parsing. |
Constructor and Description |
---|
JSONParser(java.lang.String s,
BSONCallback callback) |
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 |
---|---|
private BSONCallback |
BSONCallbackAdapter.bsonCallback |
private BSONCallback |
BSONCallbackAdapter.Context.callback |
Modifier and Type | Method and Description |
---|---|
BSONCallback |
EmptyBSONCallback.createBSONCallback() |
BSONCallback |
BasicBSONCallback.createBSONCallback() |
BSONCallback |
BSONCallback.createBSONCallback()
Factory method for BSONCallbacks.
|
Modifier and Type | Method and Description |
---|---|
int |
LazyBSONDecoder.decode(byte[] bytes,
BSONCallback callback) |
int |
BasicBSONDecoder.decode(byte[] bytes,
BSONCallback callback) |
int |
BSONDecoder.decode(byte[] bytes,
BSONCallback callback)
Decode a single BSON object into the given callback from the given byte array.
|
int |
LazyBSONDecoder.decode(java.io.InputStream in,
BSONCallback callback) |
int |
BasicBSONDecoder.decode(java.io.InputStream in,
BSONCallback callback) |
int |
BSONDecoder.decode(java.io.InputStream in,
BSONCallback callback)
Decode a single BSON object into the given callback from the given input stream.
|
Constructor and Description |
---|
BSONCallbackAdapter(BsonWriterSettings settings,
BSONCallback bsonCallback)
Initializes a new instance of the BsonWriter class.
|