private boolean readGZIPFile(final File fl) throws IOException, FileNotFoundException {
  boolean success=false;
  BufferedReader reader=null;
  try {
    reader=new BufferedReader(new InputStreamReader(new GZIPInputStream(new FileInputStream(fl))));
    int line=1;
    String readLine=null;
    while (reader.ready() && (readLine=reader.readLine()) != null) {
      parseValue(readLine,line);
      line++;
    }
    reader.close();
    success=true;
  }
  finally {
    if (reader != null) {
      reader.close();
    }
  }
  return success;
}

private boolean readGZIPFile ( final File fl ) throws IOException , FileNotFoundException { boolean success = false ; BufferedReader reader = null ; try { reader = new BufferedReader ( new InputStreamReader ( new GZIPInputStream ( new FileInputStream ( fl ) ) ) ) ; int line = 1 ; String readLine = null ; while ( reader . ready ( ) && ( readLine = reader . readLine ( ) ) != null ) { parseValue ( readLine , line ) ; line ++ ; } reader . close ( ) ; success = true ; } finally { if ( reader != null ) { reader . close ( ) ; } } return success ; }
reads traces from a gzip file , one line at a time .
