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 fromXMLStreamException
void allocate(XMLStreamReader reader, XMLEventConsumer consumer) throws XMLStreamException
reader
- The XMLStreamReader to allocate fromconsumer
- The XMLEventConsumer to add to.XMLStreamException
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.