public interface XMLEventAllocator
XMLInputFactory,
XMLEventFactory
| Modifier and Type | Method and Description |
|---|---|
XMLEvent |
allocate(XMLStreamReader
This method allocates an event given the current state of the XMLStreamReader.
|
void |
allocate(XMLStreamReader
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.
|
XMLEventAllocatornewInstance()
XMLEventallocate(XMLStreamReader reader) throws XMLStreamException
reader - The XMLStreamReader to allocate from
XMLStreamException
void allocate(XMLStreamReaderreader, XMLEventConsumer consumer) throws XMLStreamException
reader - The XMLStreamReader to allocate from
consumer - The XMLEventConsumer to add to.
XMLStreamException