Class ProtobufReader<T extends com.google.protobuf.GeneratedMessageV3>

  • All Implemented Interfaces:
    org.apache.pulsar.client.api.schema.SchemaReader<T>
    Direct Known Subclasses:
    ProtobufNativeReader

    public class ProtobufReader<T extends com.google.protobuf.GeneratedMessageV3>
    extends java.lang.Object
    implements org.apache.pulsar.client.api.schema.SchemaReader<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      ProtobufReader​(T protoMessageInstance)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T read​(byte[] bytes, int offset, int length)  
      T read​(java.io.InputStream inputStream)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.pulsar.client.api.schema.SchemaReader

        getNativeSchema, read, read, read, setSchemaInfoProvider
    • Constructor Detail

      • ProtobufReader

        public ProtobufReader​(T protoMessageInstance)
    • Method Detail

      • read

        public T read​(byte[] bytes,
                      int offset,
                      int length)
        Specified by:
        read in interface org.apache.pulsar.client.api.schema.SchemaReader<T extends com.google.protobuf.GeneratedMessageV3>
      • read

        public T read​(java.io.InputStream inputStream)
        Specified by:
        read in interface org.apache.pulsar.client.api.schema.SchemaReader<T extends com.google.protobuf.GeneratedMessageV3>