Package | Description |
---|---|
org.bson |
Contains the base BSON classes.
|
org.bson.codecs |
This package contains all the default BSON codecs.
|
org.bson.json |
JSON serialization and deserialization.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractBsonReader
Abstract base class for BsonReader implementations.
|
class |
BsonBinaryReader
A BsonReader implementation that reads from a binary stream of data.
|
class |
BsonDocumentReader
A
BsonReader implementation that reads from an instance of BsonDocument . |
Modifier and Type | Method and Description |
---|---|
void |
BsonBinaryWriter.pipe(BsonReader reader) |
void |
BsonWriter.pipe(BsonReader reader)
Reads a single document from a BsonReader and writes it to this.
|
void |
AbstractBsonWriter.pipe(BsonReader reader) |
void |
BsonBinaryWriter.pipe(BsonReader reader,
List<BsonElement> extraElements) |
void |
AbstractBsonWriter.pipe(BsonReader reader,
List<BsonElement> extraElements)
Reads a single document from the given BsonReader and writes it to this, appending the given extra elements to the document.
|
Modifier and Type | Method and Description |
---|---|
ObjectId |
ObjectIdCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
AtomicLong |
AtomicLongCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
AtomicBoolean |
AtomicBooleanCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonDocumentWrapper |
BsonDocumentWrapperCodec.decode(BsonReader reader,
DecoderContext decoderContext)
Decoding of
BsonDocumentWrapper instances is not supported, so this method will throw UnsupportedOperationException
in all cases. |
BigDecimal |
BigDecimalCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonMinKey |
BsonMinKeyCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonDecimal128 |
BsonDecimal128Codec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonValue |
BsonValueCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonTimestamp |
BsonTimestampCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonObjectId |
BsonObjectIdCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Pattern |
PatternCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
AtomicInteger |
AtomicIntegerCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonInt64 |
BsonInt64Codec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonBoolean |
BsonBooleanCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Code |
CodeCodec.decode(BsonReader bsonReader,
DecoderContext decoderContext) |
Character |
CharacterCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonDbPointer |
BsonDBPointerCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
T |
Decoder.decode(BsonReader reader,
DecoderContext decoderContext)
Decodes a BSON value from the given reader into an instance of the type parameter
T . |
Symbol |
SymbolCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
RawBsonDocument |
RawBsonDocumentCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Date |
DateCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonRegularExpression |
BsonRegularExpressionCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
MinKey |
MinKeyCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonString |
BsonStringCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
byte[] |
ByteArrayCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
UUID |
UuidCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
MaxKey |
MaxKeyCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Byte |
ByteCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonDateTime |
BsonDateTimeCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
String |
StringCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Iterable |
IterableCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Document |
DocumentCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Double |
DoubleCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonUndefined |
BsonUndefinedCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonJavaScriptWithScope |
BsonJavaScriptWithScopeCodec.decode(BsonReader bsonReader,
DecoderContext decoderContext) |
Binary |
BinaryCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonSymbol |
BsonSymbolCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Map<String,Object> |
MapCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonJavaScript |
BsonJavaScriptCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Float |
FloatCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonDocument |
BsonDocumentCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
CodeWithScope |
CodeWithScopeCodec.decode(BsonReader bsonReader,
DecoderContext decoderContext) |
Decimal128 |
Decimal128Codec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonArray |
BsonArrayCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Short |
ShortCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonMaxKey |
BsonMaxKeyCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonDouble |
BsonDoubleCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Boolean |
BooleanCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Integer |
IntegerCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonNull |
BsonNullCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Long |
LongCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonInt32 |
BsonInt32Codec.decode(BsonReader reader,
DecoderContext decoderContext) |
BsonBinary |
BsonBinaryCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
<T> T |
DecoderContext.decodeWithChildContext(Decoder<T> decoder,
BsonReader reader)
Creates a child context and then deserializes using the reader.
|
protected BsonValue |
BsonDocumentCodec.readValue(BsonReader reader,
DecoderContext decoderContext)
This method may be overridden to change the behavior of reading the current value from the given
BsonReader . |
protected BsonValue |
BsonArrayCodec.readValue(BsonReader reader,
DecoderContext decoderContext)
This method may be overridden to change the behavior of reading the current value from the given
BsonReader . |
Modifier and Type | Class and Description |
---|---|
class |
JsonReader
Reads a JSON in one of the following modes:
Strict mode that conforms to the JSON RFC specifications.
JavaScript mode that that most JavaScript interpreters can process
Shell mode that the mongo shell can process.
|
Copyright © 2018. All rights reserved.