Java javax.xml.bind Marshaller fields, constructors, methods, implement or subclass

Example usage for Java javax.xml.bind Marshaller fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.xml.bind Marshaller.

The text is from its open source code.

Implementation

javax.xml.bind.Marshaller has the following implementations.
Click this link to see all its implementation.

Field

StringJAXB_ENCODING
The name of the property used to specify the output encoding in the marshalled XML data.
StringJAXB_FORMATTED_OUTPUT
The name of the property used to specify whether or not the marshalled XML data is formatted with linefeeds and indentation.
StringJAXB_SCHEMA_LOCATION
The name of the property used to specify the xsi:schemaLocation attribute value to place in the marshalled XML output.
StringJAXB_NO_NAMESPACE_SCHEMA_LOCATION
The name of the property used to specify the xsi:noNamespaceSchemaLocation attribute value to place in the marshalled XML output.
StringJAXB_FRAGMENT
The name of the property used to specify whether or not the marshaller will generate document level events (ie calling startDocument or endDocument).

Method

AgetAdapter(Class type)
Gets the adapter associated with the specified type.
ClassgetClass()
Returns the runtime class of this Object .
ValidationEventHandlergetEventHandler()
Return the current event handler or the default event handler if one hasn't been set.
ObjectgetProperty(String name)
Get the particular property in the underlying implementation of Marshaller .
voidmarshal(Object jaxbElement, javax.xml.transform.Result result)
Marshal the content tree rooted at jaxbElement into the specified javax.xml.transform.Result .
voidmarshal(Object jaxbElement, java.io.OutputStream os)
Marshal the content tree rooted at jaxbElement into an output stream.
voidmarshal(Object jaxbElement, File output)
Marshal the content tree rooted at jaxbElement into a file.
voidmarshal(Object jaxbElement, java.io.Writer writer)
Marshal the content tree rooted at jaxbElement into a Writer.
voidmarshal(Object jaxbElement, org.xml.sax.ContentHandler handler)
Marshal the content tree rooted at jaxbElement into SAX2 events.
voidmarshal(Object jaxbElement, org.w3c.dom.Node node)
Marshal the content tree rooted at jaxbElement into a DOM tree.
voidmarshal(Object jaxbElement, javax.xml.stream.XMLStreamWriter writer)
Marshal the content tree rooted at jaxbElement into a javax.xml.stream.XMLStreamWriter .
voidmarshal(Object jaxbElement, javax.xml.stream.XMLEventWriter writer)
Marshal the content tree rooted at jaxbElement into a javax.xml.stream.XMLEventWriter .
voidsetAdapter(XmlAdapter adapter)
Associates a configured instance of XmlAdapter with this marshaller.
voidsetAdapter(Class type, A adapter)
Associates a configured instance of XmlAdapter with this marshaller.
voidsetAttachmentMarshaller(AttachmentMarshaller am)

Associate a context that enables binary data within an XML document to be transmitted as XML-binary optimized attachment.

voidsetEventHandler(ValidationEventHandler handler)
Allow an application to register a validation event handler.
voidsetListener(Listener listener)

Register marshal event callback Listener with this Marshaller .

voidsetProperty(String name, Object value)
Set the particular property in the underlying implementation of Marshaller .
voidsetSchema(Schema schema)
Specify the JAXP 1.3 javax.xml.validation.Schema Schema object that should be used to validate subsequent marshal operations against.