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); }
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); }
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); }
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); }
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); }
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); }
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); }