out.reset();
in.reset();
out.setByteOrder(ByteOrder.LITTLE_ENDIAN);
in.setByteOrder(ByteOrder.LITTLE_ENDIAN);
out.writeInt(Integer.MAX_VALUE);
assertEquals(Integer.MAX_VALUE, in.readInt());
}
public void testWriteLong() throws IOException {
final BasicImageOutputStreamImpl out = new BasicImageOutputStreamImpl(8);
final ImageInputStream in = new BasicImageInputStreamImpl(out.buff);