throw new IOException("Image Decoder not created for retrieving image, need to init() GeoTIFFFile.");
}
SeekableStream ss = SeekableStream.wrapInputStream(fileURL.openStream(),
true);
XTIFFImageDecoder xtffImageDecoder = new XTIFFImageDecoder(ss, new XTIFFDecodeParam());
RenderedImage ri = xtffImageDecoder.decodeAsRenderedImage();
BufferedImage bi = new BufferedImage(ri.getColorModel(), ri.copyData(null), false, new Hashtable());
ss.close();
return bi;
}