@Test public void get() { when(byteArrayReader.get(0)).thenReturn("1士大夫".getBytes(Charset.forName("utf8"))); assertEquals("1士大夫", new BaseStringReader(byteArrayReader).get(0)); }
@Override public String get(long pos) { return new String(byteArrayReader.get(pos), StringWriter.CHARSET); }
BaseStringReader implements StringReader { @Override public String get(long pos) { return new String(byteArrayReader.get(pos), StringWriter.CHARSET); } }
BaseStringReader implements StringReader { @Override public String get(long pos) { return new String(byteArrayReader.get(pos), StringWriter.CHARSET); } BaseStringReader(ByteArrayReader byteArrayReader); }
BaseStringReader implements StringReader { @Override public String get(long pos) { return new String(byteArrayReader.get(pos), StringWriter.CHARSET); } BaseStringReader(ByteArrayReader byteArrayReader); @Override boolean isReadable(); @Override String get(long pos); @Override void release(); }
BaseStringReader implements StringReader { @Override public String get(long pos) { return new String(byteArrayReader.get(pos), StringWriter.CHARSET); } BaseStringReader(ByteArrayReader byteArrayReader); @Override boolean isReadable(); @Override String get(long pos); @Override void release();  }