Example usage for com.google.gson.stream JsonWriter subclass-usage

List of usage examples for com.google.gson.stream JsonWriter subclass-usage

Introduction

In this page you can find the example usage for com.google.gson.stream JsonWriter subclass-usage.

Usage

From source file bind.JsonTreeWriter.java

/**
 * This writer creates a JsonElement.
 */
public final class JsonTreeWriter extends JsonWriter {
    private static final Writer UNWRITABLE_WRITER = new Writer() {
        @Override

From source file com.vmware.xenon.common.serialization.HashingJsonWriter.java

/**
 * Instead of writing, this class computes a running hash.
 */
public final class HashingJsonWriter extends JsonWriter {

    private static final int BEG_ARRAY = 1;

From source file ddt.dtool.util.JsonWriterExt.java

public class JsonWriterExt extends JsonWriter {

    public JsonWriterExt(Writer out) {
        super(out);
    }

From source file dtool.util.JsonWriterExt.java

public class JsonWriterExt extends JsonWriter {

    public JsonWriterExt(Writer out) {
        super(out);
    }

From source file name.kevinlocke.appveyor.testutils.json.JsonOrgTreeWriter.java

/**
 * This writer creates a JSONArray, JSONObject, or primitive value.
 */
public final class JsonOrgTreeWriter extends JsonWriter {
    private static final Writer UNWRITABLE_WRITER = new Writer() {
        @Override

From source file org.immutables.gson.stream.JsonGeneratorWriter.java

/**
 * {@link JsonWriter} impementation backed by Jackson's {@link JsonGenerator}.
 * Provides measurable JSON writing improvements over Gson's native implementation.
 * Error reporting is might differ, however.
 */
@NotThreadSafe

From source file org.immutables.mongo.bson4gson.BsonWriter.java

/**
 * Adapter of {@link com.google.gson.stream.JsonWriter GSON Writer} writing JSON documents in <a href="http://bsonspec.org/">BSON format</a>
 * It delegates most of the calls to {@link org.bson.BsonWriter} which can serialize document representation in BSON binary version (default wire protocol
 * between mongo server and client). This allows to write / persist immutable objects directly into binary, bypassing intermediate
 * object representation (typically Immutable -> DBObject-> byte[]} ). Generated Gson {@link com.google.gson.TypeAdapter} takes care of
 * reading the object and calling write methods as a stream API.