public int read(BufferedInputStream is){
  init();
  if (is != null) {
    in=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;
}

public int read ( BufferedInputStream is ) { init ( ) ; if ( is != null ) { in = 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 ; }
reads gif image from stream
