Package io.grpc
Interface Metadata.BinaryStreamMarshaller<T>
-
- Enclosing class:
- Metadata
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/6575") public static interface Metadata.BinaryStreamMarshaller<T>
Marshaller for metadata values that are serialized to an InputStream.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
parseStream(InputStream stream)
Parses a serialized metadata value from anInputStream
.InputStream
toStream(T value)
Serializes a metadata value to anInputStream
.
-
-
-
Method Detail
-
toStream
InputStream toStream(T value)
Serializes a metadata value to anInputStream
.- Parameters:
value
- to serialize- Returns:
- serialized version of value
-
parseStream
T parseStream(InputStream stream)
Parses a serialized metadata value from anInputStream
.- Parameters:
stream
- of metadata to parse- Returns:
- a parsed instance of type T
-
-