private static ImageHeader read ( Media media , ImageHeaderReader reader ) { Check . notNull ( media ) ; Check . notNull ( reader ) ; try ( InputStream input = media . getInputStream ( ) ) { return reader . readHeader ( input ) ; } catch ( final IOException exception ) { throw new LionEngineException ( exception , media , ERROR_READ ) ; } }
Read image header .