Apache Commons IO is a java library with simple IO utilities and filters.
This requires the library commons-io-2.1.jar to be in classpath.
The following example shows using FileFilterUtils.sizeRangeFileFilter() API.
It returns a filter that returns TRUE if the file size is within the given range.