code: protected File[] getAvailableFiles(final String logFileLocation, final Date maxDate) {
  
          File dir = new File(logFileLocation);
  
          return dir.listFiles(new FilenameFilter() {
              @Override
              public boolean accept(File dir, String fileName) {
                  boolean extentionMatch = fileName.endsWith(compressionExtention);
                  boolean dateMatch = maxDate.before(fileCreatedDate(fileName));
                  return dateMatch && extentionMatch;
              }
          });
  
      }
docs: Gets the available files.
  
  @param logFileLocation the log file location
  @param maxDate the max date
  @return the available files