public void setParam(ImageEncodeParam param) {
        this.param = param;
    }
Sets the current parameters to an instance of the
ImageEncodeParam interface.  Concrete implementations
of ImageEncoder may throw a RuntimeException if the
params argument is not an instance of the appropriate
subclass or subinterface.  For example, a JPEGImageEncoder
will expect param to be an instance of JPEGEncodeParam.
plugins/svg-plugin/batik-codec-fix/src/main/java/org/apache/batik/ext/awt/image/codec/util/ImageEncoderImpl.java