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 Detail

      • toStream

        InputStream toStream​(T value)
        Serializes a metadata value to an InputStream.
        Parameters:
        value - to serialize
        Returns:
        serialized version of value
      • parseStream

        T parseStream​(InputStream stream)
        Parses a serialized metadata value from an InputStream.
        Parameters:
        stream - of metadata to parse
        Returns:
        a parsed instance of type T