Class JsonReader<T>

  • Type Parameters:
    T - object type to read
    All Implemented Interfaces:
    org.apache.pulsar.client.api.schema.SchemaReader<T>

    @Deprecated
    public class JsonReader<T>
    extends java.lang.Object
    implements org.apache.pulsar.client.api.schema.SchemaReader<T>
    Deprecated.
    use JacksonJsonReader instead.
    Reader implementation for reading objects from JSON.
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonReader​(com.fasterxml.jackson.databind.ObjectMapper objectMapper, java.lang.Class<T> pojo)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      T read​(byte[] bytes, int offset, int length)
      Deprecated.
       
      T read​(java.io.InputStream inputStream)
      Deprecated.
       
      • 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

      • JsonReader

        public JsonReader​(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                          java.lang.Class<T> pojo)
        Deprecated.
    • Method Detail

      • read

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

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