protected DecodeFacade getAliDecoder() {
DecodeFacade d = new DecodeFacade() {
public BufferedImage decode(InputStream in) throws IOException {
// FileInputStream in = null;
ImageInputStream imageStream = null;
try {
// in = new FileInputStream(img);
imageStream = new ImageBitsInputStream(in);
JPEGDecoder decoder = new JPEGDecoder(imageStream);
ImageWrapper wi = decoder.decode();
return wi.getAsBufferedImage();
} finally {
// IOUtils.closeQuietly(in);
if (imageStream != null) {
imageStream.close();
}
}
}
public String getName() {