Class BaseMarshaller
java.lang.Object
org.jboss.resteasy.plugins.providers.jaxb.BaseMarshaller
- All Implemented Interfaces:
Marshaller
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.xml.bind.Marshaller
Marshaller.Listener -
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidmarshal(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, waitMethods 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 Details
-
marshaller
-
charset
-
-
Constructor Details
-
BaseMarshaller
public BaseMarshaller()
-
-
Method Details
-
marshal
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
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
-