public static class HeaderFieldTable.DecTable extends Object
HeaderField
table, that contains index -> HeaderField mapping.Modifier | Constructor and Description |
---|---|
protected |
DecTable(int maxSize,
int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
protected void |
clear() |
int |
entriesCount() |
HeaderField |
get(int index) |
String |
getStateString() |
protected void |
onAdded(HeaderField entry,
int realIdx) |
protected void |
onChangeAbsIndexes(HeaderField[] entries,
int startIdx,
int endIdx) |
protected void |
onRemoved(HeaderField entry) |
void |
put(HeaderField entry) |
void |
put(String name) |
void |
put(String name,
String value) |
protected int |
realToTableIdx(int realIdx) |
void |
setMaxSize(int maxSize) |
int |
sizeOf(HeaderField f) |
String |
toString() |
protected DecTable(int maxSize, int initialCapacity)
maxSize
- maximum table size in bytesinitialCapacity
- initial capacity for dynamic entries
collectionsIllegalArgumentException
public int entriesCount()
public final HeaderField get(int index)
protected final int realToTableIdx(int realIdx)
public final void put(String name)
public final void put(HeaderField entry)
public final void setMaxSize(int maxSize)
protected void clear()
public final int sizeOf(HeaderField f)
public String getStateString()
protected void onAdded(HeaderField entry, int realIdx)
protected void onRemoved(HeaderField entry)
protected void onChangeAbsIndexes(HeaderField[] entries, int startIdx, int endIdx)
Copyright © 2023 Oracle Corporation. All rights reserved.