javax.xml.bind.util

Class JAXBResult

public class JAXBResult extends SAXResult

Utility class that allows to catch the result of a stylesheet transformation in a JAXB object.

Since: JAXB1.0

Author: JSR-31

Constructor Summary
JAXBResult(JAXBContext pContext)

Creates a new instance of JAXBResult.

JAXBResult(Unmarshaller pUnmarshaller)

Creates a new instance of JAXBResult.

Method Summary
ObjectgetResult()

Returns the result of a previous transformation.

Constructor Detail

JAXBResult

public JAXBResult(JAXBContext pContext)

Creates a new instance of JAXBResult. The instance will use the specified {@link javax.xml.bind.JAXBContext} to create an {@link javax.xml.bind.Unmarshaller}.

JAXBResult

public JAXBResult(Unmarshaller pUnmarshaller)

Creates a new instance of JAXBResult. The instance will use the given {@link javax.xml.bind.Unmarshaller} to create a {@link org.xml.sax.ContentHandler}.

In most cases you will use the constructor taking a {@link javax.xml.bind.JAXBContext} as input. This additional constructor is required, if you want to configure the {@link javax.xml.bind.Unmarshaller}.

Parameters: pUnmarshaller The Unmarshaller that may be queried for an {@link UnmarshallerHandler}.

Method Detail

getResult

public Object getResult()

Returns the result of a previous transformation.