Package org.jacoco.core.internal.data
Class CompactDataInput
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- java.io.DataInputStream
-
- org.jacoco.core.internal.data.CompactDataInput
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.DataInput
,java.lang.AutoCloseable
public class CompactDataInput extends java.io.DataInputStream
Additional data input methods for compact storage of data structures.- See Also:
CompactDataOutput
-
-
Constructor Summary
Constructors Constructor Description CompactDataInput(java.io.InputStream in)
Creates a newCompactDataInput
that uses the specified underlying input stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean[]
readBooleanArray()
Reads a boolean array.int
readVarInt()
Reads a variable length representation of an integer value.-
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
-
-
-
-
Constructor Detail
-
CompactDataInput
public CompactDataInput(java.io.InputStream in)
Creates a newCompactDataInput
that uses the specified underlying input stream.- Parameters:
in
- underlying input stream
-
-
Method Detail
-
readVarInt
public int readVarInt() throws java.io.IOException
Reads a variable length representation of an integer value.- Returns:
- read value
- Throws:
java.io.IOException
- if thrown by the underlying stream
-
readBooleanArray
public boolean[] readBooleanArray() throws java.io.IOException
Reads a boolean array.- Returns:
- boolean array
- Throws:
java.io.IOException
- if thrown by the underlying stream
-
-