javax.xml.stream.util
Interface XMLEventAllocator


public interface XMLEventAllocator

Interface for allocating events according to a stream reader.


Method Summary
 XMLEvent allocate(XMLStreamReader reader)
          Allocates an event based on the current state of the stream reader.
 void allocate(XMLStreamReader reader, XMLEventConsumer consumer)
          Allocates one or more events based on the current state of the stream reader and adds those events to the specified consumer.
 XMLEventAllocator newInstance()
          Creates a new allocator.
 

Method Detail

newInstance

XMLEventAllocator newInstance()
Creates a new allocator.


allocate

XMLEvent allocate(XMLStreamReader reader)
                  throws XMLStreamException
Allocates an event based on the current state of the stream reader.

Throws:
XMLStreamException

allocate

void allocate(XMLStreamReader reader,
              XMLEventConsumer consumer)
              throws XMLStreamException
Allocates one or more events based on the current state of the stream reader and adds those events to the specified consumer.

Throws:
XMLStreamException