public BufferedImage decode(final ByteSource byteSource) throws IOException, ImagingException {
        final JpegUtils jpegUtils = new JpegUtils();
        jpegUtils.traverseJfif(byteSource, this);
        if (imageReadException != null) {
            throw imageReadException;
        }
        if (ioException != null) {
            throw ioException;
        }
        return image;
    }
Constructs a new instance with the default, big-endian, byte order.
src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/JpegDecoder.java