public BufferedImage decode(ByteSource byteSource)
throws IOException, ImageReadException
{
JpegUtils jpegUtils = new JpegUtils();
jpegUtils.traverseJFIF(byteSource, this);
if (imageReadException != null)
throw imageReadException;
if (ioException != null)
throw ioException;
return image;