byte[] bytes={-100, -50, 0, 1, 100, 127};
for(byte b: bytes)
out.writeByte(b);
ByteArrayDataInputStream in=new ByteArrayDataInputStream(out.buffer());
for(byte b: bytes) {
int tmp=in.readUnsignedByte();
assert tmp == (b & 0xff);
}
}
public void testBoolean() throws Exception {