@Override public JsonGenerator createGenerator(Writer writer) { return new JsonGeneratorImpl(writer, bufferPool); }
@Override public JsonGenerator createGenerator(OutputStream out) { return new JsonGeneratorImpl(out, bufferPool); }
@Override public JsonGenerator createGenerator(Writer writer) { return prettyPrinting ? new JsonPrettyGeneratorImpl(writer, bufferPool) : new JsonGeneratorImpl(writer, bufferPool); }
@Override public JsonGenerator createGenerator(OutputStream out) { return prettyPrinting ? new JsonPrettyGeneratorImpl(out, bufferPool) : new JsonGeneratorImpl(out, bufferPool); }
JsonWriterImpl(Writer writer, boolean prettyPrinting, BufferPool bufferPool) { generator = prettyPrinting ? new JsonPrettyGeneratorImpl(writer, bufferPool) : new JsonGeneratorImpl(writer, bufferPool); os = null; }
@Override public JsonGenerator createGenerator(OutputStream out, Charset charset) { return prettyPrinting ? new JsonPrettyGeneratorImpl(out, charset, bufferPool) : new JsonGeneratorImpl(out, charset, bufferPool); }
JsonWriterImpl(OutputStream out, Charset charset, boolean prettyPrinting, BufferPool bufferPool) { // Decorating the given stream, so that buffered contents can be // written without actually flushing the stream. this.os = new NoFlushOutputStream(out); generator = prettyPrinting ? new JsonPrettyGeneratorImpl(os, charset, bufferPool) : new JsonGeneratorImpl(os, charset, bufferPool); }
@Override public JsonGenerator createGenerator(Writer writer) { return new JsonGeneratorImpl(writer, bufferPool); }
@Override public JsonGenerator createGenerator(OutputStream out) { return new JsonGeneratorImpl(out, bufferPool); }
@Override public JsonGenerator createGenerator(OutputStream out, Charset charset) { return prettyPrinting ? new JsonPrettyGeneratorImpl(out, charset, bufferPool) : new JsonGeneratorImpl(out, charset, bufferPool); }
JsonWriterImpl(Writer writer, boolean prettyPrinting, BufferPool bufferPool) { generator = prettyPrinting ? new JsonPrettyGeneratorImpl(writer, bufferPool) : new JsonGeneratorImpl(writer, bufferPool); os = null; }
@Override public JsonGenerator createGenerator(Writer writer) { return prettyPrinting ? new JsonPrettyGeneratorImpl(writer, bufferPool) : new JsonGeneratorImpl(writer, bufferPool); }
@Override public JsonGenerator createGenerator(OutputStream out) { return prettyPrinting ? new JsonPrettyGeneratorImpl(out, bufferPool) : new JsonGeneratorImpl(out, bufferPool); }
JsonWriterImpl(OutputStream out, Charset charset, boolean prettyPrinting, BufferPool bufferPool) { // Decorating the given stream, so that buffered contents can be // written without actually flushing the stream. this.os = new NoFlushOutputStream(out); generator = prettyPrinting ? new JsonPrettyGeneratorImpl(os, charset, bufferPool) : new JsonGeneratorImpl(os, charset, bufferPool); }
@Override public JsonGenerator createGenerator(Writer writer) { return prettyPrinting ? new JsonPrettyGeneratorImpl(writer, bufferPool) : new JsonGeneratorImpl(writer, bufferPool); }
JsonWriterImpl(Writer writer, boolean prettyPrinting, BufferPool bufferPool) { generator = prettyPrinting ? new JsonPrettyGeneratorImpl(writer, bufferPool) : new JsonGeneratorImpl(writer, bufferPool); os = null; }
@Override public JsonGenerator createGenerator(OutputStream out, Charset charset) { return prettyPrinting ? new JsonPrettyGeneratorImpl(out, charset, bufferPool) : new JsonGeneratorImpl(out, charset, bufferPool); }
@Override public JsonGenerator createGenerator(OutputStream out, Charset charset) { return prettyPrinting ? new JsonPrettyGeneratorImpl(out, charset, bufferPool) : new JsonGeneratorImpl(out, charset, bufferPool); }
@Override public JsonGenerator createGenerator(OutputStream out) { return prettyPrinting ? new JsonPrettyGeneratorImpl(out, bufferPool) : new JsonGeneratorImpl(out, bufferPool); }
@Override public JsonGenerator createGenerator(OutputStream out) { return prettyPrinting ? new JsonPrettyGeneratorImpl(out, bufferPool) : new JsonGeneratorImpl(out, bufferPool); }