@Test public void testNull() throws IOException { final ByteArrayOutputStream baos = new ByteArrayOutputStream(); final AJsonSerHelper ser = new AJsonSerHelper(baos); ser.writeNullLiteral(); final String result = new String(baos.toByteArray(), "utf-8"); assertEquals("null", result); }
public void writeNullLiteral () throws IOException { checkAcceptsValueAndPrefixComma (); out.write ("null"); afterValueWritten (); }
AJsonSerHelper { public void writeNullLiteral () throws IOException { checkAcceptsValueAndPrefixComma (); out.write ("null"); afterValueWritten (); } }
AJsonSerHelper { public void writeNullLiteral () throws IOException { checkAcceptsValueAndPrefixComma (); out.write ("null"); afterValueWritten (); } AJsonSerHelper(OutputStream out); }
AJsonSerHelper { public void writeNullLiteral () throws IOException { checkAcceptsValueAndPrefixComma (); out.write ("null"); afterValueWritten (); } AJsonSerHelper(OutputStream out); void startObject(); void endObject(); void writeKey(String key); void startArray(); void endArray(); void writeStringLiteral(String s); void writeNumberLiteral(long value, int numFracDigits); void writeNumberLiteral(double value, int numFracDigits); void writeBooleanLiteral(boolean value); void writeNullLiteral(); void writeIntLiteral(int value); void writeLongLiteral(long value); void writeStringArray(Iterable<String> values); void writeStringField(String key, String value); void writeBooleanField(String key, Boolean value); void writeIntField(String key, Integer value); void writeLongField(String key, Long value); static String buildString(AStatement1<AJsonSerHelper, E> code); }
AJsonSerHelper { public void writeNullLiteral () throws IOException { checkAcceptsValueAndPrefixComma (); out.write ("null"); afterValueWritten (); } AJsonSerHelper(OutputStream out); void startObject(); void endObject(); void writeKey(String key); void startArray(); void endArray(); void writeStringLiteral(String s); void writeNumberLiteral(long value, int numFracDigits); void writeNumberLiteral(double value, int numFracDigits); void writeBooleanLiteral(boolean value); void writeNullLiteral(); void writeIntLiteral(int value); void writeLongLiteral(long value); void writeStringArray(Iterable<String> values); void writeStringField(String key, String value); void writeBooleanField(String key, Boolean value); void writeIntField(String key, Integer value); void writeLongField(String key, Long value); static String buildString(AStatement1<AJsonSerHelper, E> code); static final Charset UTF_8; }