类 JacksonJsonReader<T>

java.lang.Object
org.apache.pulsar.client.impl.schema.reader.JacksonJsonReader<T>
类型参数:
T - object type to read
所有已实现的接口:
org.apache.pulsar.client.api.schema.SchemaReader<T>

public class JacksonJsonReader<T> extends Object implements org.apache.pulsar.client.api.schema.SchemaReader<T>
Reader implementation for reading objects from JSON.
  • 构造器详细资料

    • JacksonJsonReader

      public JacksonJsonReader(com.fasterxml.jackson.databind.ObjectMapper objectMapper, Class<T> pojo)
  • 方法详细资料

    • read

      public T read(byte[] bytes, int offset, int length)
      指定者:
      read 在接口中 org.apache.pulsar.client.api.schema.SchemaReader<T>
    • read

      public T read(InputStream inputStream)
      指定者:
      read 在接口中 org.apache.pulsar.client.api.schema.SchemaReader<T>