public class XMLListElementProvider extends AbstractListElementProvider
Modifier and Type | Class and Description |
---|---|
static class |
XMLListElementProvider.App |
static class |
XMLListElementProvider.General |
static class |
XMLListElementProvider.Text |
AbstractListElementProvider.JaxbTypeChecker
UTF8
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, writeTo
getMarshaller, getSAXSource, getStoredJAXBContext, getUnmarshaller, isFormattedOutput, isSupported, isXmlRootElementProcessing, setConfiguration, setHeader
getCharset, getSize, readFromAsString, writeTo, writeTo, writeToAsString
protected final XMLStreamReader getXMLStreamReader(Class<?> elementType, javax.ws.rs.core.MediaType mediaType, Unmarshaller u, InputStream entityStream) throws XMLStreamException
AbstractListElementProvider
getXMLStreamReader
in class AbstractListElementProvider
elementType
- the individual element type.mediaType
- the media type.u
- the unmarshaller as a carrier of possible config options.entityStream
- the input stream.XMLStreamException
public final void writeList(Class<?> elementType, Collection<?> t, javax.ws.rs.core.MediaType mediaType, Charset c, Marshaller m, OutputStream entityStream) throws JAXBException, IOException
AbstractListElementProvider
writeList
in class AbstractListElementProvider
elementType
- the element type in the collection.t
- the collecton to marshallmediaType
- the media typec
- the charsetm
- the marshallerentityStream
- the output stream to marshall the collectionJAXBException
IOException
Copyright © 2013 Oracle Corporation. All rights reserved.