T - POJO type to process.public class ProtobufReader<T> extends Object implements org.apache.pulsar.client.api.schema.SchemaReader<T>
ProtobufferCodec from Micronaut.| Constructor and Description |
|---|
ProtobufReader(io.micronaut.protobuf.codec.ProtobufferCodec codec,
io.micronaut.core.type.Argument<T> type) |
| Modifier and Type | Method and Description |
|---|---|
T |
read(byte[] bytes,
int offset,
int length) |
T |
read(InputStream inputStream) |
public ProtobufReader(io.micronaut.protobuf.codec.ProtobufferCodec codec,
io.micronaut.core.type.Argument<T> type)
public 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>