public void setMaximumCompressionRatio(long ratio) {
        this.ratio = ratio;
    }
Sets the ratio between output characters and input bytes. If this
ratio is exceeded (after the output threshold has been reached) then
an exception gets thrown.

@param ratio new maximum compression ratio
tika-core/src/main/java/org/apache/tika/sax/SecureContentHandler.java