/* */ public BMPImageEncoder(OutputStream output, ImageEncodeParam param)
/* */ {
/* 77 */ super(output, param);
/* */
/* 79 */ this.output = output;
/* */ BMPEncodeParam bmpParam;
/* */ BMPEncodeParam bmpParam;
/* 82 */ if (param == null)
/* */ {
/* 84 */ bmpParam = new BMPEncodeParam();
/* */ }
/* 86 */ else bmpParam = (BMPEncodeParam)param;
/* */
/* 89 */ this.version = bmpParam.getVersion();
/* 90 */ this.isCompressed = bmpParam.isCompressed();
/* 91 */ if ((this.isCompressed) && (!(output instanceof SeekableOutputStream))) {
/* 92 */ throw new IllegalArgumentException(JaiI18N.getString("BMPImageEncoder6"));
/* */ }
/* */
/* 96 */ this.isTopDown = bmpParam.isTopDown();
/* */ }