T - type of JAXB annotated objects that will be serialized.public class JAXBCoder<T> extends CustomCoder<T>
Class of the JAXB annotated object.Coder.Context, Coder.NonDeterministicException| Modifier and Type | Method and Description |
|---|---|
T |
decode(InputStream inStream) |
T |
decode(InputStream inStream,
Coder.Context context) |
void |
encode(T value,
OutputStream outStream) |
void |
encode(T value,
OutputStream outStream,
Coder.Context context) |
boolean |
equals(Object other) |
TypeDescriptor<T> |
getEncodedTypeDescriptor() |
Class<T> |
getJAXBClass() |
int |
hashCode() |
static <T> JAXBCoder<T> |
of(Class<T> jaxbClass)
Create a coder for a given type of JAXB annotated objects.
|
getCoderArguments, verifyDeterministicconsistentWithEquals, getEncodedElementByteSize, isRegisterByteSizeObserverCheap, registerByteSizeObserver, structuralValue, verifyDeterministic, verifyDeterministicpublic static <T> JAXBCoder<T> of(Class<T> jaxbClass)
jaxbClass - the Class of the JAXB annotated objects.public void encode(T value, OutputStream outStream) throws CoderException, IOException
encode in class Coder<T>CoderExceptionIOExceptionpublic void encode(T value, OutputStream outStream, Coder.Context context) throws CoderException, IOException
encode in class Coder<T>CoderExceptionIOExceptionpublic T decode(InputStream inStream) throws CoderException, IOException
decode in class Coder<T>CoderExceptionIOExceptionpublic T decode(InputStream inStream, Coder.Context context) throws CoderException, IOException
decode in class Coder<T>CoderExceptionIOExceptionpublic TypeDescriptor<T> getEncodedTypeDescriptor()
getEncodedTypeDescriptor in class Coder<T>Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.