Unlike the ByteArrayInputStream this class is not thread safe (i.e. no two threads can use the same object at the same time, but different objects may be used in different threads).
This class can modify the contents of the buffer given to the constructor, when the addByteArray() method is called.
System.Object
CSJ2K.j2k.entropy.decoder.ByteInputBuffer