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

Method parse

api/src/main/java/io/grpc/ServerInterceptors.java:147–156  ·  view source on GitHub ↗
(final InputStream stream)

Source from the content-addressed store, hash-verified

145 }
146
147 @Override
148 public InputStream parse(final InputStream stream) {
149 if (stream.markSupported()) {
150 return stream;
151 } else if (stream instanceof KnownLength) {
152 return new KnownLengthBufferedInputStream(stream);
153 } else {
154 return new BufferedInputStream(stream);
155 }
156 }
157 };
158
159 return useMarshalledMessages(serviceDef, marshaller);

Callers

nothing calls this directly

Calls 1

markSupportedMethod · 0.65

Tested by

no test coverage detected