public class Stax2EventAllocatorImpl
extends java.lang.Object
implements javax.xml.stream.util.XMLEventAllocator, javax.xml.stream.XMLStreamConstants
XMLEventAllocator, to be
used either as is, or as a base for more specialized Stax2
event allocator implementation.| Constructor and Description |
|---|
Stax2EventAllocatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
javax.xml.stream.events.XMLEvent |
allocate(javax.xml.stream.XMLStreamReader r) |
void |
allocate(javax.xml.stream.XMLStreamReader r,
javax.xml.stream.util.XMLEventConsumer consumer) |
protected javax.xml.stream.events.DTD |
createDTD(javax.xml.stream.XMLStreamReader r,
javax.xml.stream.Location loc) |
protected javax.xml.stream.events.EntityReference |
createEntityReference(javax.xml.stream.XMLStreamReader r,
javax.xml.stream.Location loc) |
protected javax.xml.stream.events.StartElement |
createStartElement(javax.xml.stream.XMLStreamReader r,
javax.xml.stream.Location loc) |
protected javax.xml.stream.Location |
getLocation(javax.xml.stream.XMLStreamReader r)
Method used to get the
Location object to use for
an event to create. |
javax.xml.stream.util.XMLEventAllocator |
newInstance() |
public javax.xml.stream.events.XMLEvent allocate(javax.xml.stream.XMLStreamReader r)
throws javax.xml.stream.XMLStreamException
allocate in interface javax.xml.stream.util.XMLEventAllocatorjavax.xml.stream.XMLStreamExceptionpublic void allocate(javax.xml.stream.XMLStreamReader r,
javax.xml.stream.util.XMLEventConsumer consumer)
throws javax.xml.stream.XMLStreamException
allocate in interface javax.xml.stream.util.XMLEventAllocatorjavax.xml.stream.XMLStreamExceptionpublic javax.xml.stream.util.XMLEventAllocator newInstance()
newInstance in interface javax.xml.stream.util.XMLEventAllocatorprotected javax.xml.stream.Location getLocation(javax.xml.stream.XMLStreamReader r)
Location object to use for
an event to create. Base implementation just calls stream
reader's accessors, but sub-classes may choose to use other
methods (esp. when not in "preserve location" mode).protected javax.xml.stream.events.EntityReference createEntityReference(javax.xml.stream.XMLStreamReader r,
javax.xml.stream.Location loc)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionprotected javax.xml.stream.events.DTD createDTD(javax.xml.stream.XMLStreamReader r,
javax.xml.stream.Location loc)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionprotected javax.xml.stream.events.StartElement createStartElement(javax.xml.stream.XMLStreamReader r,
javax.xml.stream.Location loc)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException