runCodec = new RunCodec(1, Codec.BYTE1, Codec.UNSIGNED5);
bais = new ByteArrayInputStream(new byte[] { (byte) 192, 0, (byte) 192,
0 });
assertEquals(192, runCodec.decode(bais));
assertEquals(0, runCodec.decode(bais));
assertEquals(192, runCodec.decode(bais));
assertEquals(0, bais.available());
}
public void testDecodeInts() throws Exception {
int[] band = new int[] { 1, -2, -3, 1000, 55, 5, 10, 20 };