| 87 | } |
| 88 | |
| 89 | private void checkAll() throws Exception { |
| 90 | System.out.println("Checking combination of all URLFilters available"); |
| 91 | |
| 92 | BufferedReader in = new BufferedReader(new InputStreamReader(System.in, StandardCharsets.UTF_8)); |
| 93 | String line; |
| 94 | URLFilters filters = new URLFilters(this.conf); |
| 95 | |
| 96 | while ((line = in.readLine()) != null) { |
| 97 | String out = filters.filter(line); |
| 98 | if (out != null) { |
| 99 | System.out.print("+"); |
| 100 | System.out.println(out); |
| 101 | } else { |
| 102 | System.out.print("-"); |
| 103 | System.out.println(line); |
| 104 | } |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | public static void main(String[] args) throws Exception { |
| 109 | |