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

pack-priv abstract sealed Class FieldLineReader

extends Object
permits FieldLineIndexedPostBaseReader, FieldLineIndexedReader, FieldLineLiteralsReader, FieldLineNameRefPostBaseReader, FieldLineNameReferenceReader
Class Inheritance
Known Direct Subclasses
jdk.internal.net.http.qpack.readers.FieldLineIndexedPostBaseReader, jdk.internal.net.http.qpack.readers.FieldLineIndexedReader, jdk.internal.net.http.qpack.readers.FieldLineLiteralsReader, jdk.internal.net.http.qpack.readers.FieldLineNameReferenceReader, jdk.internal.net.http.qpack.readers.FieldLineNameRefPostBaseReader
Imports
jdk.internal.net.http.qpack.DecodingCallback, .DynamicTable, .FieldSectionPrefix, .HeaderField, .QPackException, .StaticTable, java.io.IOException, java.net.ProtocolException, java.nio.ByteBuffer, java.util.concurrent.atomic.AtomicLong

Field Summary

Modifier and TypeField and Description
private final DynamicTable
pack-priv boolean
pack-priv final long
private final AtomicLong

Constructor Summary

AccessConstructor and Description
pack-priv
FieldLineReader(DynamicTable dynamicTable, long maxSectionSize, AtomicLong sectionSizeTracker)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
checkEntryIndex(long
dynamic table absolute index
absoluteIndex
,
FieldSectionPrefix
field line section prefix
prefix
)

Checks if the decoder encounters a reference in a field line representation to a dynamic table entry that has already been evicted or that has an absolute index greater than or equal to the declared Required Insert Count (Section 4.5.1), it MUST treat this as a connection error of type QPACK_DECOMPRESSION_FAILED.

pack-priv final void
checkPartialSize(long partialFieldSize)

pack-priv final void
checkSectionSize(long fieldSize)

pack-priv abstract void
configure(int b)

pack-priv final HeaderField

Returns:

a header field corresponding to the specified entry
entryAtIndex
(long
absolute index of the table entry.
index
)

Return a header field entry for the specified entry index.

pack-priv final int
getMaxFieldLineLimit(int partiallyRead)

pack-priv final int
private static QPackException
maxFieldSectionExceeded(long sectionSize, long maxSize)

pack-priv abstract boolean
pack-priv abstract void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dynamicTableback to summary
private final DynamicTable dynamicTable
fromStaticTableback to summary
pack-priv boolean fromStaticTable
maxSectionSizeback to summary
pack-priv final long maxSectionSize
sectionSizeTrackerback to summary
private final AtomicLong sectionSizeTracker

Constructor Detail

FieldLineReaderback to summary
pack-priv FieldLineReader(DynamicTable dynamicTable, long maxSectionSize, AtomicLong sectionSizeTracker)

Method Detail

checkEntryIndexback to summary
pack-priv void checkEntryIndex(long absoluteIndex, FieldSectionPrefix prefix)

Checks if the decoder encounters a reference in a field line representation to a dynamic table entry that has already been evicted or that has an absolute index greater than or equal to the declared Required Insert Count (Section 4.5.1), it MUST treat this as a connection error of type QPACK_DECOMPRESSION_FAILED.

Parameters
absoluteIndex:long

dynamic table absolute index

prefix:FieldSectionPrefix

field line section prefix

checkPartialSizeback to summary
pack-priv final void checkPartialSize(long partialFieldSize)
checkSectionSizeback to summary
pack-priv final void checkSectionSize(long fieldSize)
configureback to summary
pack-priv abstract void configure(int b)
entryAtIndexback to summary
pack-priv final HeaderField entryAtIndex(long index)

Return a header field entry for the specified entry index. The table type is selected according to the fromStaticTable value.

Parameters
index:long

absolute index of the table entry.

Returns:HeaderField

a header field corresponding to the specified entry

getMaxFieldLineLimitback to summary
pack-priv final int getMaxFieldLineLimit(int partiallyRead)
getMaxFieldLineLimitback to summary
pack-priv final int getMaxFieldLineLimit()
maxFieldSectionExceededback to summary
private static QPackException maxFieldSectionExceeded(long sectionSize, long maxSize)
readback to summary
pack-priv abstract boolean read(ByteBuffer input, FieldSectionPrefix prefix, DecodingCallback action)
resetback to summary
pack-priv abstract void reset()