jbackup/src/main/java/org/jbundle/jbackup/util/Util.java
public static FilenameFilter makeFilter(Properties properties)
	{
		String strFilter = properties.getProperty(JBackupConstants.FILTER_PARAM);
		if (strFilter != null)
		if (strFilter.indexOf('.') != -1)
			return (FilenameFilter)Util.makeObjectFromClassName(Object.class.getName(), null, strFilter);
		else
			return new PathFilter(strFilter);
		return null;	// Add+++ Make the filename filter!
	}
public static FilenameFilter makeFilter(Properties properties)
	{
		String strFilter = properties.getProperty(JBackupConstants.FILTER_PARAM);
		if (strFilter != null)
		if (strFilter.indexOf('.') != -1)
			return (FilenameFilter)Util.makeObjectFromClassName(Object.class.getName(), null, strFilter);
		else
			return new PathFilter(strFilter);
		return null;	// Add+++ Make the filename filter!
	}
public static FilenameFilter makeFilter ( Properties properties ) { String strFilter = properties . getProperty ( JBackupConstants . FILTER_PARAM ) ; if ( strFilter != null ) if ( strFilter . indexOf ( ' ' ) != - 1 ) return ( FilenameFilter ) Util . makeObjectFromClassName ( Object . class . getName ( ) , null , strFilter ) ; else return new PathFilter ( strFilter ) ; return null ; // Add+++ Make the filename filter! }
/*
Create a filter from these properties.
@param The properties.
@return The filter.
/ * Create a filter from these properties .