code: private int readByteFromStream() throws IOException {
      int result = this.in.read();
      if (result >= 0 && this.msb0) {
        result = JBBPUtils.reverseBitsInByte((byte) result) & 0xFF;
      }
      return result;
    }
docs: Inside method to read a byte from stream.
  
  @return the read byte or -1 if the end of the stream has been reached
  @throws IOException it will be thrown for transport errors