/** * Set the maximum table size. */ public void setMaxHeaderTableSize(OutputStream out, int maxHeaderTableSize) throws IOException { if (maxHeaderTableSize < 0) { throw new IllegalArgumentException("Illegal Capacity: " + maxHeaderTableSize); } if (capacity == maxHeaderTableSize) { return; } capacity = maxHeaderTableSize; ensureCapacity(0); encodeInteger(out, 0x20, 5, maxHeaderTableSize); }
/** * Set the maximum table size. */ public void setMaxHeaderTableSize(OutputStream out, int maxHeaderTableSize) throws IOException { if (maxHeaderTableSize < 0) { throw new IllegalArgumentException("Illegal Capacity: " + maxHeaderTableSize); } if (capacity == maxHeaderTableSize) { return; } capacity = maxHeaderTableSize; ensureCapacity(0); encodeInteger(out, 0x20, 5, maxHeaderTableSize); }
int nameIndex = getNameIndex(name); if (useIndexing) { ensureCapacity(headerSize);
int nameIndex = getNameIndex(name); if (useIndexing) { ensureCapacity(headerSize);