### Question:
EbcdicPrefixer implements Prefixer { @Override public int decodeLength(byte[] b, int offset) { int len = 0; for (int i = 0; i < nDigits; i++) { len = len * 10 + (b[offset + i] & 0x0F); } return len; } EbcdicPrefixer(int nDigits); @Override void encodeLength(int length, byte[] b); @Override int decodeLength(byte[] b, int offset); @Override int getPackedLength(); static final EbcdicPrefixer L; static final EbcdicPrefixer LL; static final EbcdicPrefixer LLL; static final EbcdicPrefixer LLLL; }### Answer:
@Test public void testDecode() throws Exception { byte[] b = new byte[]{(byte)0xF2, (byte)0xF5}; assertEquals(25, EbcdicPrefixer.LL.decodeLength(b, 0)); }