public static final void assertChmBlockSegment(byte[] data, ChmLzxcResetTable resetTable,
                                                   int blockNumber, int lzxcBlockOffset,
                                                   int lzxcBlockLength) throws TikaException {
        if ((data == null)) {
            throw new TikaException("data[] is null");
        }

        if ((data.length <= 0)) {
            throw new TikaException("data[] length should be greater than zero");
        }

        if (resetTable == null) {
            throw new TikaException("resetTable is null");
        }

        if (resetTable.getBlockAddress().length <= 1) {
            throw new TikaException(
                    "resetTable.getBlockAddress().length should be greater than zero");
        }

        if (blockNumber < 0) {
            throw new TikaException("blockNumber should be positive number");
        }

        if (lzxcBlockOffset < 0) {
            throw new TikaException("lzxcBlockOffset should be positive number");
        }

        if (lzxcBlockLength < 0) {
            throw new TikaException("lzxcBlockLength should be positive number");
        }
    }
Checks a validity of the chmBlockSegment parameters

@param data            byte[]
@param resetTable      ChmLzxcResetTable
@param blockNumber     int
@param lzxcBlockOffset int
@param lzxcBlockLength int
@throws TikaException
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/chm/ChmAssert.java