@Test void testUTF32codes() { String source = "\uD842\uDF9F"; byte[] bytes = source.getBytes(StandardCharsets.UTF_8); String jvmcheck = new String(bytes, 0, bytes.length, StandardCharsets.UTF_8); assertEquals(source, jvmcheck); Utf8StringBuilder buffer = new Utf8StringBuilder(); buffer.append(bytes, 0, bytes.length); String result = buffer.toString(); assertEquals(source, result); }
@Override public String toString() { checkState(); return buffer.toString(); }
Utf8StringBuilder extends Utf8Appendable { @Override public String toString() { checkState(); return buffer.toString(); } }
Utf8StringBuilder extends Utf8Appendable { @Override public String toString() { checkState(); return buffer.toString(); } Utf8StringBuilder();  Utf8StringBuilder(int capacity); }
Utf8StringBuilder extends Utf8Appendable { @Override public String toString() { checkState(); return buffer.toString(); } Utf8StringBuilder();  Utf8StringBuilder(int capacity); @Override int length(); @Override void reset(); StringBuilder getStringBuilder(); @Override String toString(); }
Utf8StringBuilder extends Utf8Appendable { @Override public String toString() { checkState(); return buffer.toString(); } Utf8StringBuilder();  Utf8StringBuilder(int capacity); @Override int length(); @Override void reset(); StringBuilder getStringBuilder(); @Override String toString();  }