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 ; } } ) ; }
Gets the available files .