MCPcopy Create free account
hub / github.com/apache/avro / printHead

Method printHead

lang/java/tools/src/main/java/org/apache/avro/tool/Main.java:94–103  ·  view source on GitHub ↗
(InputStream in, int lines)

Source from the content-addressed store, hash-verified

92 }
93
94 private static void printHead(InputStream in, int lines) throws Exception {
95 BufferedReader r = new BufferedReader(new InputStreamReader(in));
96 for (int i = 0; i < lines; i++) {
97 String line = r.readLine();
98 if (line == null) {
99 break;
100 }
101 System.err.println(line);
102 }
103 }
104
105}

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected