@Test public void testInterpret() throws Exception { byte[] b = new byte[3]; inter.interpret("123", b, 0); TestUtils.assertEquals(new byte[] {49, 50, 51}, b); }
@Override public void interpret(String data, byte[] b, int offset) { byte[] raw = data.getBytes(ISOUtil.CHARSET); System.arraycopy(raw, 0, b, offset, raw.length); }
LiteralInterpreter implements Interpreter { @Override public void interpret(String data, byte[] b, int offset) { byte[] raw = data.getBytes(ISOUtil.CHARSET); System.arraycopy(raw, 0, b, offset, raw.length); } }
LiteralInterpreter implements Interpreter { @Override public void interpret(String data, byte[] b, int offset) { byte[] raw = data.getBytes(ISOUtil.CHARSET); System.arraycopy(raw, 0, b, offset, raw.length); }  }
LiteralInterpreter implements Interpreter { @Override public void interpret(String data, byte[] b, int offset) { byte[] raw = data.getBytes(ISOUtil.CHARSET); System.arraycopy(raw, 0, b, offset, raw.length); }  @Override void interpret(String data, byte[] b, int offset); @Override String uninterpret(byte[] rawData, int offset, int length); @Override int getPackedLength(int nDataUnits); }
LiteralInterpreter implements Interpreter { @Override public void interpret(String data, byte[] b, int offset) { byte[] raw = data.getBytes(ISOUtil.CHARSET); System.arraycopy(raw, 0, b, offset, raw.length); }  @Override void interpret(String data, byte[] b, int offset); @Override String uninterpret(byte[] rawData, int offset, int length); @Override int getPackedLength(int nDataUnits); static final LiteralInterpreter INSTANCE; }