This method allocates an event given the current
state of the XMLStreamReader. If this XMLEventAllocator
does not have a one-to-one mapping between reader states
and events this method will return null. This method
must not modify the state of the XMLStreamReader.
Returns:
the event corresponding to the current reader state
Parameters:
-
reader - The XMLStreamReader to allocate from