@Test public void shouldCorrectlyWriteIntegerValues() { assertSame("10", writer.write(10)); assertSame("0", writer.write(0)); assertSame("-1", writer.write(-1)); assertSame(Integer.toString(Integer.MAX_VALUE), writer.write(Integer.MAX_VALUE)); assertSame(Integer.toString(Integer.MIN_VALUE), writer.write(Integer.MIN_VALUE)); }
@Override public void write( Object object, OutputStream stream ) throws IOException { Writer writer = new BufferedWriter(new OutputStreamWriter(stream, Json.UTF8)); write(object, writer); writer.flush(); }
CompactJsonWriter implements JsonWriter { @Override public void write( Object object, OutputStream stream ) throws IOException { Writer writer = new BufferedWriter(new OutputStreamWriter(stream, Json.UTF8)); write(object, writer); writer.flush(); } }
CompactJsonWriter implements JsonWriter { @Override public void write( Object object, OutputStream stream ) throws IOException { Writer writer = new BufferedWriter(new OutputStreamWriter(stream, Json.UTF8)); write(object, writer); writer.flush(); }  }
CompactJsonWriter implements JsonWriter { @Override public void write( Object object, OutputStream stream ) throws IOException { Writer writer = new BufferedWriter(new OutputStreamWriter(stream, Json.UTF8)); write(object, writer); writer.flush(); }  @Override void write( Object object,
                       OutputStream stream ); @Override void write( Object object,
                       Writer writer ); @Override void write( Object object,
                       StringBuilder writer ); @Override String write( Object object ); }
CompactJsonWriter implements JsonWriter { @Override public void write( Object object, OutputStream stream ) throws IOException { Writer writer = new BufferedWriter(new OutputStreamWriter(stream, Json.UTF8)); write(object, writer); writer.flush(); }  @Override void write( Object object,
                       OutputStream stream ); @Override void write( Object object,
                       Writer writer ); @Override void write( Object object,
                       StringBuilder writer ); @Override String write( Object object );  }