bundles/org.tukani.xz/src/org/tukaani/xz/FilterOptions.java
public static int getEncoderMemoryUsage(FilterOptions[] options) {
        int m = 0;

        for (int i = 0; i < options.length; ++i)
            m += options[i].getEncoderMemoryUsage();

        return m;
    }
public static int getEncoderMemoryUsage(FilterOptions[] options) {
        int m = 0;

        for (int i = 0; i < options.length; ++i)
            m += options[i].getEncoderMemoryUsage();

        return m;
    }
Gets how much memory the encoder will need with
the given filter chain. This function simply calls
<code>getEncoderMemoryUsage()</code> for every filter
in the array and returns the sum of the returned values.