public static boolean logFileZipped(String file){
  return file.endsWith(".bz2") || file.endsWith(".gz") || file.endsWith(".xz");
}

public static boolean logFileZipped ( String file ) { return file . endsWith ( ".bz2" ) || file . endsWith ( ".gz" ) || file . endsWith ( ".xz" ) ; }
check for a compressed file extension - for now , . bz2 , . xz and . gz
