@Override
	public long getLogFileTimestamp(File file) {
		String name = file.getName();
		// Check name for extension
		if (name == null || name.length() == 0 || !name.startsWith(TEXTLOGPREF) || !name.endsWith(TEXTLOGEXT)) {
			return -1L;
		}
		long result = -1L;
		try {
			Date date = DATEFORMAT.parse(name.substring(TEXTLOGPREF.length(), name.length() - TEXTLOGEXT.length()));
			result = date.getTime();
		} catch (ParseException ex) {
			// Fall through to return -1L;
		}
		return result;
	}
@ Override public long getLogFileTimestamp ( File file ) { String name = file . getName ( ) ; if ( name == null || name . length ( ) == 0 || ! name . startsWith ( TEXTLOGPREF ) || ! name . endsWith ( TEXTLOGEXT ) ) { return - 1L ; } long result = - 1L ; try { Date date = DATEFORMAT . parse ( name . substring ( TEXTLOGPREF . length ( ) , name . length ( ) - TEXTLOGEXT . length ( ) ) ) ; result = date . getTime ( ) ; } catch ( ParseException ex ) { } return result ; }
/*
@Override public String getLogFilePid(File file) { return ""; }