com.sun.jersey.core.impl.provider.entity
Class XMLListElementProvider
java.lang.Object
com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider<T>
com.sun.jersey.core.provider.jaxb.AbstractJAXBProvider<Object>
com.sun.jersey.core.provider.jaxb.AbstractListElementProvider
com.sun.jersey.core.impl.provider.entity.XMLListElementProvider
- All Implemented Interfaces:
- MessageBodyReader<Object>, MessageBodyWriter<Object>
- Direct Known Subclasses:
- XMLListElementProvider.App, XMLListElementProvider.General, XMLListElementProvider.Text
public class XMLListElementProvider
- extends AbstractListElementProvider
- Author:
- Paul.Sandoz@Sun.Com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getXMLStreamReader
protected final XMLStreamReader getXMLStreamReader(Class<?> elementType,
MediaType mediaType,
Unmarshaller u,
InputStream entityStream)
throws XMLStreamException
- Description copied from class:
AbstractListElementProvider
- Get the XMLStreamReader for unmarshalling.
- Specified by:
getXMLStreamReader
in class AbstractListElementProvider
- Parameters:
elementType
- the individual element type.mediaType
- the media type.u
- the unmarshaller as a carrier of possible config options.entityStream
- the input stream.
- Returns:
- the XMLStreamReader.
- Throws:
XMLStreamException
writeList
public final void writeList(Class<?> elementType,
Collection<?> t,
MediaType mediaType,
Charset c,
Marshaller m,
OutputStream entityStream)
throws JAXBException,
IOException
- Description copied from class:
AbstractListElementProvider
- Write a collection of JAXB objects as child elements of the root element.
- Specified by:
writeList
in class AbstractListElementProvider
- Parameters:
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 collection
- Throws:
JAXBException
IOException
Copyright © 2013 Oracle Corporation. All Rights Reserved.