private void setDynamicTableSize(int dynamicTableSize) throws IOException { if (dynamicTableSize > maxDynamicTableSize) { throw INVALID_MAX_DYNAMIC_TABLE_SIZE; } encoderMaxDynamicTableSize = dynamicTableSize; maxDynamicTableSizeChangeRequired = false; dynamicTable.setCapacity(dynamicTableSize); }
private void setDynamicTableSize(int dynamicTableSize) throws IOException { if (dynamicTableSize > maxDynamicTableSize) { throw INVALID_MAX_DYNAMIC_TABLE_SIZE; } encoderMaxDynamicTableSize = dynamicTableSize; maxDynamicTableSizeChangeRequired = false; dynamicTable.setCapacity(dynamicTableSize); }
/** * Creates a new dynamic table with the specified initial capacity. */ DynamicTable(int initialCapacity) { setCapacity(initialCapacity); }
/** * Creates a new dynamic table with the specified initial capacity. */ DynamicTable(int initialCapacity) { setCapacity(initialCapacity); }
/** * Set the maximum table size. * If this is below the maximum size of the dynamic table used by the encoder, * the beginning of the next header block MUST signal this change. */ public void setMaxHeaderTableSize(int maxHeaderTableSize) { maxDynamicTableSize = maxHeaderTableSize; if (maxDynamicTableSize < encoderMaxDynamicTableSize) { // decoder requires less space than encoder // encoder MUST signal this change maxDynamicTableSizeChangeRequired = true; dynamicTable.setCapacity(maxDynamicTableSize); } }
/** * Set the maximum table size. * If this is below the maximum size of the dynamic table used by the encoder, * the beginning of the next header block MUST signal this change. */ public void setMaxHeaderTableSize(int maxHeaderTableSize) { maxDynamicTableSize = maxHeaderTableSize; if (maxDynamicTableSize < encoderMaxDynamicTableSize) { // decoder requires less space than encoder // encoder MUST signal this change maxDynamicTableSizeChangeRequired = true; dynamicTable.setCapacity(maxDynamicTableSize); } }