MCPcopy Create free account
hub / github.com/apache/nutch / checkAll

Method checkAll

src/java/org/apache/nutch/net/URLFilterChecker.java:89–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

mainMethod · 0.95

Calls 2

filterMethod · 0.95
readLineMethod · 0.80

Tested by

no test coverage detected