bos = new BufferedOutputStream(os);
encoder.compressImage(bi, bos, params);
bos.close();
} catch (IOException details) {
LOGGER.error(details.getMessage(), details);
throw new FormatIOException(details.getMessage(), details);
} catch (DjatokaException details) {
LOGGER.error(details.getMessage(), details);
throw new FormatIOException(details.getMessage(), details);
} catch (Exception details) {
LOGGER.error(details.getMessage(), details);
throw new FormatIOException(details.getMessage(), details);
}
}
}