Class CompactDataInput
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
org.jacoco.core.internal.data.CompactDataInput
- All Implemented Interfaces:
Closeable, DataInput, AutoCloseable
Additional data input methods for compact storage of data structures.
- See Also:
-
Field Summary
Fields inherited from class FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newCompactDataInputthat uses the specified underlying input stream. -
Method Summary
Modifier and TypeMethodDescriptionboolean[]Reads a boolean array.intReads a variable length representation of an integer value.Methods inherited from class DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytesMethods inherited from class FilterInputStream
available, close, mark, markSupported, read, reset, skipMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
CompactDataInput
Creates a newCompactDataInputthat uses the specified underlying input stream.- Parameters:
in- underlying input stream
-
-
Method Details
-
readVarInt
Reads a variable length representation of an integer value.- Returns:
- read value
- Throws:
IOException- if thrown by the underlying stream
-
readBooleanArray
Reads a boolean array.- Returns:
- boolean array
- Throws:
IOException- if thrown by the underlying stream
-