Codec<JsonObject>
, Decoder<JsonObject>
, Encoder<JsonObject>
Encodes and Decodes JSON object strings.
Constructors
Construct a JsonObjectCodec with default JsonWriterSettings
Construct a JsonObjectCodec with provided JsonWriterSettings
Decodes a BSON value from the given reader into an instance of the type parameter T
.
void
Encode an instance of the type parameter T
into a BSON value.
Returns the Class instance that this encodes.
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public JsonObjectCodec()
Construct a JsonObjectCodec with default JsonWriterSettings
Construct a JsonObjectCodec with provided JsonWriterSettings
writerSettings
- the settings
Encoder
Encode an instance of the type parameter T
into a BSON value.
encode
in interface Encoder<JsonObject>
writer
- the BSON writer to encode into
value
- the value to encode
encoderContext
- the encoder context
Decoder
Decodes a BSON value from the given reader into an instance of the type parameter T
.
decode
in interface Decoder<JsonObject>
reader
- the BSON reader
decoderContext
- the decoder context
T
.
Encoder
Returns the Class instance that this encodes. This is necessary because Java does not reify generic types.
getEncoderClass
in interface Encoder<JsonObject>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4