public RenderedImage decodeAsRenderedImage(int page) throws IOException {
if (page != 0) {
throw new IOException(JaiI18N.getString("FPXImageDecoder0"));
}
try {
return new FPXImage(input, (FPXDecodeParam)param);
} catch(Exception e) {
throw CodecUtils.toIOException(e);
}
}