Class BaseMarshaller

java.lang.Object
org.jboss.resteasy.plugins.providers.jaxb.BaseMarshaller
All Implemented Interfaces:
Marshaller

public abstract class BaseMarshaller extends Object implements Marshaller
Version:
$Revision: 1 $
Author:
Bill Burke
  • Field Details

    • marshaller

      protected Marshaller marshaller
    • charset

      protected String charset
  • Constructor Details

    • BaseMarshaller

      public BaseMarshaller()
  • Method Details

    • marshal

      public void marshal(Object o, OutputStream outputStream) throws JAXBException
      Description copied from interface: Marshaller
      Marshal the content tree rooted at jaxbElement into an output stream.
      Specified by:
      marshal in interface Marshaller
      Parameters:
      o - The root of content tree to be marshalled.
      outputStream - XML will be added to this stream.
      Throws:
      JAXBException - If any unexpected problem occurs during the marshalling.
      MarshalException - If the ValidationEventHandler returns false from its handleEvent method or the Marshaller is unable to marshal jaxbElement (or any object reachable from jaxbElement). See Marshalling a Jakarta XML Binding element.
    • setProperty

      public void setProperty(String s, Object o) throws PropertyException
      Description copied from interface: Marshaller
      Set the particular property in the underlying implementation of Marshaller. This method can only be used to set one of the standard Jakarta XML Binding defined properties above or a provider specific property. Attempting to set an undefined property will result in a PropertyException being thrown. See Supported Properties.
      Specified by:
      setProperty in interface Marshaller
      Parameters:
      s - the name of the property to be set. This value can either be specified using one of the constant fields or a user supplied string.
      o - the value of the property to be set
      Throws:
      PropertyException - when there is an error processing the given property or value