public void checkSize ( int length , boolean huffman ) throws HpackException . SessionException { // Apply a huffman fudge factor if ( huffman ) length = ( length * 4 ) / 3 ; if ( ( _size + length ) > _maxSize ) throw new HpackException . SessionException ( "Header too large %d > %d" , _size + length , _maxSize ) ; }
Check that the max size will not be exceeded .