public class JettisonJaxbElementProvider extends AbstractJaxbElementProvider
JAXBElement
type.| Modifier and Type | Class and Description |
|---|---|
static class |
JettisonJaxbElementProvider.App |
static class |
JettisonJaxbElementProvider.General |
UTF8| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
protected JAXBElement<?> |
readFrom(Class<?> type,
MediaType mediaType,
Unmarshaller unmarshaller,
InputStream entityStream)
Read JAXB element from an entity stream.
|
protected void |
writeTo(JAXBElement<?> t,
MediaType mediaType,
Charset c,
Marshaller m,
OutputStream entityStream)
Write JAXB element to an entity stream.
|
readFrom, writeTogetMarshaller, getSAXSource, getStoredJaxbContext, getUnmarshaller, isFormattedOutput, isSupported, isXmlRootElementProcessing, setConfiguration, setHeadergetCharset, getSize, readFromAsString, writeTo, writeTo, writeToAsStringpublic boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
isReadable in interface MessageBodyReader<JAXBElement<?>>isReadable in class AbstractJaxbElementProviderpublic boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
isWriteable in interface MessageBodyWriter<JAXBElement<?>>isWriteable in class AbstractJaxbElementProviderprotected final JAXBElement<?> readFrom(Class<?> type, MediaType mediaType, Unmarshaller unmarshaller, InputStream entityStream) throws JAXBException
AbstractJaxbElementProviderreadFrom in class AbstractJaxbElementProvidertype - the type that is to be read from the entity stream.mediaType - the media type of the HTTP entity.unmarshaller - JAXB unmarshaller to be used.entityStream - the InputStream of the HTTP entity. The
caller is responsible for ensuring that the input stream ends when the
entity has been consumed. The implementation should not close the input
stream.JAXBException - in case entity unmarshalling fails.protected final void writeTo(JAXBElement<?> t, MediaType mediaType, Charset c, Marshaller m, OutputStream entityStream) throws JAXBException
AbstractJaxbElementProviderwriteTo in class AbstractJaxbElementProvidert - JAXB element to be written to an entity stream.mediaType - the media type of the HTTP entity.c - character set to be used.m - JAXB unmarshaller to be used.entityStream - the InputStream of the HTTP entity. The
caller is responsible for ensuring that the input stream ends when the
entity has been consumed. The implementation should not close the input
stream.JAXBException - in case entity marshalling fails.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.