public abstract class XMLSplitter extends XMLEventUtilBase implements Iterable<Payload>
XMLEventUtilBase.startObject(javax.xml.stream.events.XMLEvent), XMLEventUtilBase.addObjectEvent(javax.xml.stream.events.XMLEvent),
XMLEventUtilBase.finishObject(), and findNextObjectStart(boolean)). This class must be closed in order to free underlying
resources.logger, NAMESPACE_AWARE_PROP, REPAIR_NAMESPACE_PROP| Modifier | Constructor and Description |
|---|---|
protected |
XMLSplitter(XMLEventReader reader) |
protected |
XMLSplitter(XMLEventReader reader,
PayloadMetadata metadata) |
protected |
XMLSplitter(XMLEventReader reader,
XMLOutputFactory outFactory) |
protected |
XMLSplitter(XMLEventReader reader,
XMLOutputFactory outFactory,
PayloadMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeImpl()
Does the actual close work for this instance, will only be called once.
|
protected abstract XMLEvent |
findNextObjectStart(boolean isFirst)
Finds the first event for the start of the next output object from the input reader.
|
protected PayloadMetadata |
getMetadata() |
protected void |
initialize() |
Iterator<Payload> |
iterator() |
XMLEvent |
peekNextObjectStart()
Returns the start XMLEvent for the next object.
|
addObjectEvent, close, closeQuietly, closeReader, closeWriter, createEventFactory, createInputFactory, createInputFactory, createOutputFactory, createOutputFactory, findNextElementStart, finishObject, getEventFactory, getInputFactory, getOutputFactory, getReader, getWriter, openReader, openWriter, setReader, setWriter, startObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected XMLSplitter(XMLEventReader reader)
protected XMLSplitter(XMLEventReader reader, XMLOutputFactory outFactory)
protected XMLSplitter(XMLEventReader reader, PayloadMetadata metadata)
protected XMLSplitter(XMLEventReader reader, XMLOutputFactory outFactory, PayloadMetadata metadata)
protected void initialize()
throws XMLStreamException
XMLStreamExceptionprotected PayloadMetadata getMetadata()
public XMLEvent peekNextObjectStart()
NoSuchElementException - if there is no next objectprotected void closeImpl()
XMLEventUtilBasecloseImpl in class XMLEventUtilBaseprotected abstract XMLEvent findNextObjectStart(boolean isFirst) throws XMLStreamException
isFirst - whether this is the first object in the stream or a subsequent objectnull if there are no more objects in the readerXMLStreamException