Package | Description |
---|---|
org.bson |
This package contains bson classes required for the driver
|
org.bson.codecs |
This package contains all the default BSON codecs.
|
Modifier and Type | Method and Description |
---|---|
BsonString |
BsonValue.asString()
Gets this value as a BsonString if it is one, otherwise throws exception
|
BsonString |
BsonDocument.getString(Object key)
Gets the value of the key if it is a BsonString, or throws if not.
|
BsonString |
BsonDocument.getString(Object key,
BsonString defaultValue)
If the document does not contain the given key, return the given default value.
|
Modifier and Type | Method and Description |
---|---|
int |
BsonString.compareTo(BsonString o) |
BsonString |
BsonDocument.getString(Object key,
BsonString defaultValue)
If the document does not contain the given key, return the given default value.
|
Modifier and Type | Method and Description |
---|---|
BsonString |
BsonStringCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Modifier and Type | Method and Description |
---|---|
Class<BsonString> |
BsonStringCodec.getEncoderClass() |
Modifier and Type | Method and Description |
---|---|
void |
BsonStringCodec.encode(BsonWriter writer,
BsonString value,
EncoderContext encoderContext) |
Copyright © 2016. All Rights Reserved.