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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidmarshall(T t, OutputStream os) The marshalling is pretty formatted.simple unmarshalling method.
- 
Constructor Details- 
ObjectMarshallerImplCreate an object marshaller.- Parameters:
- cl- the type of class to marshall (it shall be T.class)
 
 
- 
- 
Method Details- 
marshallThe marshalling is pretty formatted.- Specified by:
- marshallin interface- ObjectMarshaller<T>
- Parameters:
- t- the object to marshall
- os- the output stream
- Throws:
- jakarta.xml.bind.JAXBException- if there are a problem.
 
- 
unmarshallsimple unmarshalling method.- Specified by:
- unmarshallin interface- ObjectMarshaller<T>
- Parameters:
- is- input stream
- Returns:
- an instance of T
- Throws:
- jakarta.xml.bind.JAXBException- if there are a problem
 
 
-