Class ByteBufOutputMarshaller

  • All Implemented Interfaces:
    io.grpc.MethodDescriptor.Marshaller<io.netty.buffer.ByteBuf>

    public class ByteBufOutputMarshaller
    extends java.lang.Object
    implements io.grpc.MethodDescriptor.Marshaller<io.netty.buffer.ByteBuf>
    Simple MethodDescriptor.Marshaller for Netty's ByteBuf.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static io.netty.buffer.EmptyByteBuf EMPTY_BYTE_BUF  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.netty.buffer.ByteBuf parse​(java.io.InputStream stream)  
      java.io.InputStream stream​(io.netty.buffer.ByteBuf value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • EMPTY_BYTE_BUF

        public static final io.netty.buffer.EmptyByteBuf EMPTY_BYTE_BUF
    • Constructor Detail

      • ByteBufOutputMarshaller

        public ByteBufOutputMarshaller()
    • Method Detail

      • stream

        public java.io.InputStream stream​(io.netty.buffer.ByteBuf value)
        Specified by:
        stream in interface io.grpc.MethodDescriptor.Marshaller<io.netty.buffer.ByteBuf>
      • parse

        public io.netty.buffer.ByteBuf parse​(java.io.InputStream stream)
        Specified by:
        parse in interface io.grpc.MethodDescriptor.Marshaller<io.netty.buffer.ByteBuf>