jaxbElement
into an output stream. The content tree may be an instance of a class that is mapped to a XML root element (for example, annotated with {@link XmlRootElement}) or an instance of {@link JAXBElement}. The UTF-8 character encoding scheme will be used to encode the characters of the JSON data.
@param jaxbElement the root of the content tree to be marshalled.
@param os the JSON will be added to this stream.
@throws JAXBException if any unexpected problem occurs during themarshalling.
@throws MarshalException if the JSONMarshaller
is unable tomarshal jaxbElement
(or any object reachable from obj)
@throws IllegalArgumentException if any of the method parameters are null.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|