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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmarshall(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:
marshallin 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:
unmarshallin interfaceObjectMarshaller<T>- Parameters:
is- input stream- Returns:
- an instance of T
- Throws:
jakarta.xml.bind.JAXBException- if there are a problem
-