public abstract class XmlRootElementJaxbProvider extends AbstractRootElementJaxbProvider
root elements
and types
.Modifier and Type | Class and Description |
---|---|
static class |
XmlRootElementJaxbProvider.App
Provider for marshalling/un-marshalling JAXB
root element
and type instances from/to entities of application/xml
media type. |
static class |
XmlRootElementJaxbProvider.General
Provider for marshalling/un-marshalling JAXB
root element
and type instances from/to entities of <type>/<sub-type>+xml
media types. |
static class |
XmlRootElementJaxbProvider.Text
Provider for marshalling/un-marshalling JAXB
root element
and type instances from/to entities of text/xml
media type. |
UTF8
Modifier and Type | Method and Description |
---|---|
protected Object |
readFrom(Class<Object> type,
MediaType mediaType,
Unmarshaller u,
InputStream entityStream)
Unmarshal a JAXB type.
|
isReadable, isWriteable, readFrom, writeTo, writeTo
getMarshaller, getSAXSource, getStoredJaxbContext, getUnmarshaller, isFormattedOutput, isSupported, isXmlRootElementProcessing, setConfiguration, setHeader
getCharset, getSize, readFromAsString, writeTo, writeTo, writeToAsString
protected Object readFrom(Class<Object> type, MediaType mediaType, Unmarshaller u, InputStream entityStream) throws JAXBException
AbstractRootElementJaxbProvider
Implementing classes may override this method.
readFrom
in class AbstractRootElementJaxbProvider
type
- the JAXB typemediaType
- the media typeu
- the unmarshaller to use for unmarshalling.entityStream
- the input stream to unmarshal from.JAXBException
- in case the JAXB unmarshalling fails.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.