Class BinaryInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.aurumsmods.littlebigio.BinaryInputStream
All Implemented Interfaces:
ByteOrdered, UnsignedIntInput, Closeable, DataInput, AutoCloseable

public class BinaryInputStream extends FilterInputStream implements DataInput, ByteOrdered, UnsignedIntInput
A binary input stream provides readability of primitive data types from an underlying input stream. The order in which the bytes are interpreted can be either little endian or big endian (see ByteOrder).

This implements DataInput but intentionally violates the specifications prescribed by the contract. This is because DataInput explicitly states the implementation of big-endian byte ordering.

BinaryInputStream is not necessarily thread-safe due to it using a buffer to read multiple bytes at once.