| 20 | import java.io.File; |
| 21 | |
| 22 | public class XMLFilter implements java.io.FilenameFilter |
| 23 | { |
| 24 | |
| 25 | /** |
| 26 | * Returns true if file matches *.xml |
| 27 | * |
| 28 | * @param file |
| 29 | * @param str |
| 30 | * @return true if filter matches *.xml |
| 31 | */ |
| 32 | @Override |
| 33 | public boolean accept(File file, String str) |
| 34 | { |
| 35 | return str.matches(".*\\.xml$"); |
| 36 | } |
| 37 | } |
nothing calls this directly
no outgoing calls
no test coverage detected