MCPcopy Create free account
hub / github.com/grpc/grpc-java / exhaust

Method exhaust

core/src/main/java/io/grpc/internal/GrpcUtil.java:812–815  ·  view source on GitHub ↗

Reads in until end of stream.

(InputStream in)

Source from the content-addressed store, hash-verified

810
811 /** Reads {@code in} until end of stream. */
812 public static void exhaust(InputStream in) throws IOException {
813 byte[] buf = new byte[256];
814 while (in.read(buf) != -1) {}
815 }
816
817 /**
818 * Some status codes from the control plane are not appropritate to use in the data plane. If one

Callers 1

runMethod · 0.95

Calls 1

readMethod · 0.65

Tested by

no test coverage detected