private void checkInput()

in src/main/java/org/apache/pdfbox/jbig2/segments/SymbolDictionary.java [288:341]


    private void checkInput() throws InvalidHeaderValueException
    {
        if (isHuffmanEncoded)
        {
            if (sdTemplate != 0)
            {
                sdTemplate = 0;
            }
            if (!useRefinementAggregation)
            {
                if (isCodingContextRetained)
                {
                    isCodingContextRetained = false;
                }

                if (isCodingContextUsed)
                {
                    isCodingContextUsed = false;
                }
            }

        }
        else
        {
            if (sdHuffBMSizeSelection != 0)
            {
                sdHuffBMSizeSelection = 0;
            }
            if (sdHuffDecodeWidthSelection != 0)
            {
                sdHuffDecodeWidthSelection = 0;
            }
            if (sdHuffDecodeHeightSelection != 0)
            {
                sdHuffDecodeHeightSelection = 0;
            }
        }

        if (!useRefinementAggregation)
        {
            if (sdrTemplate != 0)
            {
                sdrTemplate = 0;
            }
        }

        if (!isHuffmanEncoded || !useRefinementAggregation)
        {
            if (sdHuffAggInstanceSelection != 0)
            {
                sdHuffAggInstanceSelection = 0;
            }
        }
    }