Class ObjectMarshallerImpl<T>
java.lang.Object
net.ihe.gazelle.common.marshaller.ObjectMarshallerImpl<T>
- Type Parameters:
T
- the kind of object to be marshalled
- All Implemented Interfaces:
ObjectMarshaller<T>
Marshaller of an object T.
- Author:
- Abderrazek Boufahja
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
marshall
(T t, OutputStream os) The marshalling is pretty formatted.simple unmarshalling method.
-
Constructor Details
-
ObjectMarshallerImpl
Create an object marshaller.- Parameters:
cl
- the type of class to marshall (it shall be T.class)
-
-
Method Details
-
marshall
The marshalling is pretty formatted.- Specified by:
marshall
in interfaceObjectMarshaller<T>
- Parameters:
t
- the object to marshallos
- the output stream- Throws:
jakarta.xml.bind.JAXBException
- if there are a problem.
-
unmarshall
simple unmarshalling method.- Specified by:
unmarshall
in interfaceObjectMarshaller<T>
- Parameters:
is
- input stream- Returns:
- an instance of T
- Throws:
jakarta.xml.bind.JAXBException
- if there are a problem
-