APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.internal.net.http.qpack.readers

public final Class IntegerReader

extends Object
Class Inheritance
Imports
jdk.internal.net.http.http3.Http3Error, java.io.IOException, java.nio.ByteBuffer, java.util.Arrays

This class able to decode integers up to and including 62 bits long values. https://www.rfc-editor.org/rfc/rfc9204.html#name-prefixed-integers

Field Summary

Modifier and TypeField and Description
private long
b

private static final int
private static final int
private static final int
private long
private int
N

private static final int
public static final long
private long
r

private final ReaderError
private int
private long

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
private static void
checkPrefix(int N)

public IntegerReader
configure(int N)

public IntegerReader
configure(int N, long maxValue)

public long
get()

public boolean
public IntegerReader
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bback to summary
private long b
CONFIGUREDback to summary
private static final int CONFIGURED
DONEback to summary
private static final int DONE
FIRST_BYTE_READback to summary
private static final int FIRST_BYTE_READ
maxValueback to summary
private long maxValue
Nback to summary
private int N
NEWback to summary
private static final int NEW
QPACK_MAX_INTEGER_VALUEback to summary
public static final long QPACK_MAX_INTEGER_VALUE
rback to summary
private long r
readErrorback to summary
private final ReaderError readError
stateback to summary
private int state
valueback to summary
private long value

Constructor Detail

IntegerReaderback to summary
public IntegerReader(ReaderError readError)
IntegerReaderback to summary
public IntegerReader()

Method Detail

checkPrefixback to summary
private static void checkPrefix(int N)
configureback to summary
public IntegerReader configure(int N)
configureback to summary
public IntegerReader configure(int N, long maxValue)
getback to summary
public long get() throws IllegalStateException
readback to summary
public boolean read(ByteBuffer input)
resetback to summary
public IntegerReader reset()