Package org.nuxeo.lib.stream.codec
Class AvroJsonCodec<T>
- java.lang.Object
-
- org.nuxeo.lib.stream.codec.AvroJsonCodec<T>
-
-
Constructor Summary
Constructors Constructor Description AvroJsonCodec(Class<T> messageClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
decode(byte[] data)
Decodes the byte array returns an object.byte[]
encode(T object)
Encodes the object returns a byte array representation.String
getName()
Returns the codec name
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
schema
protected final org.apache.avro.Schema schema
-
writer
protected final org.apache.avro.reflect.ReflectDatumWriter<T> writer
-
reader
protected final org.apache.avro.reflect.ReflectDatumReader<T> reader
-
-