Class ByteOrderDataInStream


  • public class ByteOrderDataInStream
    extends Object
    Allows reading a stream of Java primitive datatypes from an underlying InStream, with the representation being in either common byte ordering.
    • Constructor Detail

      • ByteOrderDataInStream

        public ByteOrderDataInStream()
      • ByteOrderDataInStream

        public ByteOrderDataInStream​(InStream stream)
    • Method Detail

      • setInStream

        public void setInStream​(InStream stream)
        Allows a single ByteOrderDataInStream to be reused on multiple InStreams.
        Parameters:
        stream -
      • setOrder

        public void setOrder​(int byteOrder)
      • readByte

        public byte readByte()
                      throws IOException
        Reads a byte value
        Returns:
        the byte read
        Throws:
        IOException