Package com.dslplatform.json
@NonNullApi
package com.dslplatform.json
-
ClassDescriptionA very fast and memory efficient class to encode and decode to and from BASE64 in full accordance with RFC 2045.
On Windows XP sp1 with 1.4.2_04 and later ;), this encoder and decoder is about 10 times faster on small arrays (10 - 1000 bytes) and 2-3 times as fast on larger arrays (10000 - 1000000 bytes) compared tosun.misc.Encoder()/Decoder().
On byte arrays the encoder is about 20% faster than Jakarta Commons Base64 Codec for encode and about 50% faster for decoding large arrays.Compile time data-binding annotation.Defines behavior for handling unknown properties.JSON object format.Class level tuning for object format serialization behavior.Some types (abstract classes and interfaces) require additional metadata so they can be correctly deserialized.Configuration API for setting up readers/writers during library initialization.DSL-JSON specific exception thrown when DSL-JSON was not configured for types which are attempted to be serialized.DslJson<TContext>Main DSL-JSON class.DslJson.Fallback<TContext>DslJson.Settings<TContext>Configuration for DslJson options.Simplistic string cache implementation.Compile time property configuration.Customize property serialization behavior in minimal serialization object format.JSON converter can be specified for class.Objects which implement this interface are supported for serialization in DslJson.JsonReader<TContext>Object for processing JSON from byte[] and InputStream.Existing instances can be provided as target for deserialization.JsonReader.ReadJsonObject<T extends JsonObject>Custom objects can be deserialized based on the implementation specified through this interface.JsonReader.WithObjectReader<T extends JsonObject>Specify json value source used for serialization/deserialization.DslJson writes JSON into JsonWriter which has two primary modes of operation: * targeting specific output stream * buffering the entire response in memory In both cases JsonWriter writes into an byte[] buffer.Custom objects can be serialized based on the implementation specified through this interface.A common DslJson annotation to declare that annotated elements cannot benull.A common DslJson annotation to declare that parameters and return values are to be considered as non-nullable by default for a given package.A common DslJson annotation to declare that annotated elements can benullunder some circumstance.DSL-JSON specific exception thrown when DSL-JSON is unable to parse provided JSON.