public interface XMLEventAllocator
XMLInputFactory,
XMLEventFactory| Modifier and Type | Method and Description |
|---|---|
XMLEvent |
allocate(XMLStreamReader reader)
This method allocates an event given the current
state of the XMLStreamReader.
|
void |
allocate(XMLStreamReader reader,
XMLEventConsumer consumer)
This method allocates an event or set of events
given the current
state of the XMLStreamReader and adds the event
or set of events to the
consumer that was passed in.
|
XMLEventAllocator |
newInstance()
This method creates an instance of the XMLEventAllocator.
|
XMLEventAllocator newInstance()
XMLEvent allocate(XMLStreamReader reader) throws XMLStreamException
reader - The XMLStreamReader to allocate fromXMLStreamExceptionvoid allocate(XMLStreamReader reader, XMLEventConsumer consumer) throws XMLStreamException
reader - The XMLStreamReader to allocate fromconsumer - The XMLEventConsumer to add to.XMLStreamExceptionGenerated by SciJava from the sources of OpenJDK 8 (Zulu), which are licensed under the GNU General Public License, version 2, with the Classpath Exception. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.