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

Method toString

netty/src/test/java/io/grpc/netty/NettyTestUtil.java:35–39  ·  view source on GitHub ↗
(InputStream in)

Source from the content-addressed store, hash-verified

33public class NettyTestUtil {
34
35 static String toString(InputStream in) throws Exception {
36 byte[] bytes = new byte[in.available()];
37 ByteStreams.readFully(in, bytes);
38 return new String(bytes, UTF_8);
39 }
40
41 static ByteBuf messageFrame(String message) throws Exception {
42 ByteArrayOutputStream os = new ByteArrayOutputStream();

Calls 1

availableMethod · 0.65

Tested by

no test coverage detected