Interface ObjectMarshaller<T>
- Type Parameters:
T
- the kind of object we are marshalling in
- All Known Implementing Classes:
ObjectMarshallerImpl
public interface ObjectMarshaller<T>
Interface for marshallers in Gazelle.
- Author:
- Abderrazek Boufahja
-
Method Summary
Modifier and TypeMethodDescriptionvoid
marshall
(T t, OutputStream os) Marshall an object.Unmarshall an InputStream as T.
-
Method Details
-
marshall
Marshall an object.- Parameters:
t
- the object to marshallos
- the output stream- Throws:
jakarta.xml.bind.JAXBException
- if there are a problem.
-
unmarshall
Unmarshall an InputStream as T.- Parameters:
is
- input stream- Returns:
- an instance of T
- Throws:
jakarta.xml.bind.JAXBException
- if there are a problem
-