ImageReader createJPEGReader() {
        maybeInitJPEGProvider();
        if (jpegProvider == null) {
            throw new IllegalStateException("No suitable JPEG reader provider found");
        }

        try {
            return jpegProvider.createReaderInstance();
        }
        catch (IOException e) {
            // NOTE: The default Sun version never throws IOException here
            throw new Error("Could not create JPEG reader: " + e.getMessage(), e);
        }
    }
ImageReader createJPEGReader ( ) { maybeInitJPEGProvider ( ) ; if ( jpegProvider == null ) { throw new IllegalStateException ( "No suitable JPEG reader provider found" ) ; } try { return jpegProvider . createReaderInstance ( ) ; } catch ( IOException e ) { throw new Error ( "Could not create JPEG reader: " + e . getMessage ( ) , e ) ; } }
Returns a new {@code ImageReader} that can read JPEG images.

@return a new {@code ImageReader} that can read JPEG images.
@throws IllegalStateException if no JPEG provider was found
@throws Error                 if the reader can't be instantiated