Last active
December 25, 2015 04:28
-
-
Save pram/6917137 to your computer and use it in GitHub Desktop.
Create Java File Filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static FilenameFilter generateFilter() { | |
return new FilenameFilter() { | |
public boolean accept(File dir, String filename) { | |
return filename.toLowerCase().endsWith(".xml"); | |
} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment