MCPcopy Index your code
hub / github.com/apache/avro / printStream

Method printStream

lang/java/tools/src/main/java/org/apache/avro/tool/Main.java:88–92  ·  view source on GitHub ↗
(InputStream in)

Source from the content-addressed store, hash-verified

86 }
87
88 private static void printStream(InputStream in) throws Exception {
89 byte[] buffer = new byte[1024];
90 for (int i = in.read(buffer); i != -1; i = in.read(buffer))
91 System.err.write(buffer, 0, i);
92 }
93
94 private static void printHead(InputStream in, int lines) throws Exception {
95 BufferedReader r = new BufferedReader(new InputStreamReader(in));

Callers 1

runMethod · 0.95

Calls 2

readMethod · 0.65
writeMethod · 0.65

Tested by

no test coverage detected