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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jakarta.xml.bind.Marshaller
Marshaller.Listener
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringcharsetprotected Marshallermarshaller-
Fields inherited from interface jakarta.xml.bind.Marshaller
JAXB_ENCODING, JAXB_FORMATTED_OUTPUT, JAXB_FRAGMENT, JAXB_NO_NAMESPACE_SCHEMA_LOCATION, JAXB_SCHEMA_LOCATION
-
-
Constructor Summary
Constructors Constructor Description BaseMarshaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmarshal(Object o, OutputStream outputStream)Marshal the content tree rooted atjaxbElementinto an output stream.voidsetProperty(String s, Object o)Set the particular property in the underlying implementation ofMarshaller.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jakarta.xml.bind.Marshaller
getAdapter, getAttachmentMarshaller, getEventHandler, getListener, getNode, getProperty, getSchema, marshal, marshal, marshal, marshal, marshal, marshal, marshal, setAdapter, setAdapter, setAttachmentMarshaller, setEventHandler, setListener, setSchema
-
-
-
-
Field Detail
-
marshaller
protected Marshaller marshaller
-
charset
protected String charset
-
-
Method Detail
-
marshal
public void marshal(Object o, OutputStream outputStream) throws JAXBException
Description copied from interface:MarshallerMarshal the content tree rooted atjaxbElementinto an output stream.- Specified by:
marshalin interfaceMarshaller- 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 theValidationEventHandlerreturns false from itshandleEventmethod or theMarshalleris unable to marshaljaxbElement(or any object reachable fromjaxbElement). See Marshalling a Jakarta XML Binding element.
-
setProperty
public void setProperty(String s, Object o) throws PropertyException
Description copied from interface:MarshallerSet the particular property in the underlying implementation ofMarshaller. 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:
setPropertyin interfaceMarshaller- 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
-
-