Package org.nuxeo.lib.stream.codec
Class AvroJsonCodec<T>
- java.lang.Object
-
- org.nuxeo.lib.stream.codec.AvroJsonCodec<T>
-
- All Implemented Interfaces:
Codec<T>
public class AvroJsonCodec<T> extends Object implements Codec<T>
JSON Avro format for debugging purpose.- Since:
- 10.2
-
-
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
-
messageClass
protected final Class<T> messageClass
-
schema
protected final org.apache.avro.Schema schema
-
-
Constructor Detail
-
AvroJsonCodec
public AvroJsonCodec(Class<T> messageClass)
-
-