public class JAXBResult
extends javax.xml.transform.sax.SAXResult
Utility class that allows to catch the result of a stylesheet transformation in a JAXB object.
| Constructor and Description |
|---|
JAXBResult(JAXBContext pContext)
Creates a new instance of
JAXBResult. |
JAXBResult(Unmarshaller pUnmarshaller)
Creates a new instance of
JAXBResult. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getResult()
Returns the result of a previous transformation.
|
public JAXBResult(JAXBContext pContext) throws JAXBException
Creates a new instance of JAXBResult.
The instance will use the specified JAXBContext
to create an Unmarshaller.
JAXBExceptionpublic JAXBResult(Unmarshaller pUnmarshaller) throws JAXBException
Creates a new instance of JAXBResult.
The instance will use the given Unmarshaller
to create a ContentHandler.
In most cases you will use the constructor taking a
JAXBContext as input. This additional
constructor is required, if you want to configure the
Unmarshaller.
pUnmarshaller - The Unmarshaller that may be queried for an
UnmarshallerHandler.JAXBExceptionpublic java.lang.Object getResult()
throws JAXBException
Returns the result of a previous transformation.
JAXBException