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 Type
    Method
    Description
    void
    Marshall an object.
    Unmarshall an InputStream as T.
  • Method Details

    • marshall

      void marshall(T t, OutputStream os) throws jakarta.xml.bind.JAXBException
      Marshall an object.
      Parameters:
      t - the object to marshall
      os - the output stream
      Throws:
      jakarta.xml.bind.JAXBException - if there are a problem.
    • unmarshall

      T unmarshall(InputStream is) throws jakarta.xml.bind.JAXBException
      Unmarshall an InputStream as T.
      Parameters:
      is - input stream
      Returns:
      an instance of T
      Throws:
      jakarta.xml.bind.JAXBException - if there are a problem