XMLEventAllocator, to be
used either as is, or as a base for more specialized Stax2
event allocator implementation.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public XMLEvent | allocate(XMLStreamReader
The XMLStreamReader to allocate from r)Implements javax. |
| public void | allocate(XMLStreamReader
The XMLStreamReader to allocate from r, XMLEventConsumer The XMLEventConsumer to add to. consumer)Implements javax. |
| protected DTD | |
| protected EntityReference | |
| protected StartElement | |
| protected Location | |
| public XMLEventAllocator | newInstance()
Implements javax. |
| Stax2EventAllocatorImpl | back to summary |
|---|---|
| public Stax2EventAllocatorImpl() | |
| allocate | back to summary |
|---|---|
| public XMLEvent allocate(XMLStreamReader r) throws XMLStreamException Implements javax. Doc from javax. 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.
| |
| allocate | back to summary |
|---|---|
| public void allocate(XMLStreamReader r, XMLEventConsumer consumer) throws XMLStreamException Implements javax. Doc from javax. 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. This method can be used to expand or contract reader states into event states. This method may modify the state of the XMLStreamReader.
| |
| createDTD | back to summary |
|---|---|
| protected DTD createDTD(XMLStreamReader r, Location loc) throws XMLStreamException | |
| createEntityReference | back to summary |
|---|---|
| protected EntityReference createEntityReference(XMLStreamReader r, Location loc) throws XMLStreamException | |
| createStartElement | back to summary |
|---|---|
| protected StartElement createStartElement(XMLStreamReader r, Location loc) throws XMLStreamException | |
| getLocation | back to summary |
|---|---|
| protected Location getLocation(XMLStreamReader r) Method used to get the | |
| newInstance | back to summary |
|---|---|
| public XMLEventAllocator newInstance() Implements javax. Doc from javax. This method creates an instance of the XMLEventAllocator. This allows the XMLInputFactory to allocate a new instance per reader.
| |