public abstract class XmlCollectionJaxbProvider extends AbstractCollectionJaxbProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
XmlCollectionJaxbProvider.App
JAXB provider for marshalling/un-marshalling collections
from/to entities of
application/xml media type. |
static class |
XmlCollectionJaxbProvider.General
JAXB provider for marshalling/un-marshalling collections
from/to entities of
<type>/<sub-type>+xml media types. |
static class |
XmlCollectionJaxbProvider.Text
JAXB provider for marshalling/un-marshalling collections
from/to entities of
text/xml media type. |
AbstractCollectionJaxbProvider.JaxbTypeCheckerUTF8| Modifier and Type | Method and Description |
|---|---|
protected XMLStreamReader |
getXMLStreamReader(Class<?> elementType,
javax.ws.rs.core.MediaType mediaType,
Unmarshaller u,
InputStream entityStream)
Get the XMLStreamReader for unmarshalling.
|
void |
writeList(Class<?> elementType,
Collection<?> t,
javax.ws.rs.core.MediaType mediaType,
Charset c,
Marshaller m,
OutputStream entityStream)
Write a collection of JAXB objects as child elements of the root element.
|
getElementClass, getElementName, getRootElementName, isReadable, isWriteable, readFrom, verifyArrayType, verifyCollectionSubclass, verifyGenericType, writeTogetMarshaller, getSAXSource, getStoredJaxbContext, getUnmarshaller, isFormattedOutput, isSupported, isXmlRootElementProcessing, setConfiguration, setHeadergetCharset, getSize, readFromAsString, writeTo, writeTo, writeToAsStringprotected final XMLStreamReader getXMLStreamReader(Class<?> elementType, javax.ws.rs.core.MediaType mediaType, Unmarshaller u, InputStream entityStream) throws XMLStreamException
AbstractCollectionJaxbProvidergetXMLStreamReader in class AbstractCollectionJaxbProviderelementType - the individual element type.mediaType - the media type.u - the unmarshaller as a carrier of possible config options.entityStream - the input stream.XMLStreamExceptionpublic final void writeList(Class<?> elementType, Collection<?> t, javax.ws.rs.core.MediaType mediaType, Charset c, Marshaller m, OutputStream entityStream) throws JAXBException, IOException
AbstractCollectionJaxbProviderwriteList in class AbstractCollectionJaxbProviderelementType - the element type in the collection.t - the collecton to marshallmediaType - the media typec - the charsetm - the marshallerentityStream - the output stream to marshall the collectionJAXBExceptionIOExceptionCopyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.