question: public int read ( InputStream is ) { init ( ) ; if ( is != null ) { if ( ! ( is instanceof BufferedInputStream ) ) is = new BufferedInputStream ( is ) ; in = ( BufferedInputStream ) is ; readHeader ( ) ; if ( ! err ( ) ) { readContents ( ) ; if ( frameCount < 0 ) { status = STATUS_FORMAT_ERROR ; } } } else { status = STATUS_OPEN_ERROR ; } try { is . close ( ) ; } catch ( IOException e ) { } return status ; }
target:  Reads GIF image from stream