javax.xml.stream.util

Interface XMLEventAllocator

public interface XMLEventAllocator

Interface for allocating events according to a stream reader.
Method Summary
XMLEventallocate(XMLStreamReader reader)
Allocates an event based on the current state of the stream reader.
voidallocate(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.
XMLEventAllocatornewInstance()
Creates a new allocator.

Method Detail

allocate

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

allocate

public 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.

newInstance

public XMLEventAllocator newInstance()
Creates a new allocator.