T
- POJO type to process.public final class JacksonJsonReader<T> extends Object implements org.apache.pulsar.client.api.schema.SchemaReader<T>
ObjectMapper
from Micronaut instead of shaded one in Pulsar library.Constructor and Description |
---|
JacksonJsonReader(io.micronaut.json.JsonMapper jsonMapper,
Class<T> pojo) |
JacksonJsonReader(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
Class<T> pojo)
Deprecated.
Use
JacksonJsonReader(JsonMapper, Class) instead |
Modifier and Type | Method and Description |
---|---|
T |
read(byte[] bytes,
int offset,
int length) |
T |
read(InputStream inputStream) |
@Deprecated public JacksonJsonReader(com.fasterxml.jackson.databind.ObjectMapper objectMapper, Class<T> pojo)
JacksonJsonReader(JsonMapper, Class)
insteadobjectMapper
- The jackson object mapper to use for readingpojo
- The pojo type to readpublic T read(byte[] bytes, int offset, int length)
read
in interface org.apache.pulsar.client.api.schema.SchemaReader<T>
public T read(InputStream inputStream)
read
in interface org.apache.pulsar.client.api.schema.SchemaReader<T>