Class CompactDataInput

All Implemented Interfaces:
Closeable, DataInput, AutoCloseable

public class CompactDataInput extends DataInputStream
Additional data input methods for compact storage of data structures.
See Also:
  • Constructor Details

    • CompactDataInput

      public CompactDataInput(InputStream in)
      Creates a new CompactDataInput that uses the specified underlying input stream.
      Parameters:
      in - underlying input stream
  • Method Details

    • readVarInt

      public int readVarInt() throws IOException
      Reads a variable length representation of an integer value.
      Returns:
      read value
      Throws:
      IOException - if thrown by the underlying stream
    • readBooleanArray

      public boolean[] readBooleanArray() throws IOException
      Reads a boolean array.
      Returns:
      boolean array
      Throws:
      IOException - if thrown by the underlying stream