org.codehaus.stax2.ri.evt
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.XMLEventAllocator
javax.xml.stream.XMLStreamException
public 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.XMLEventAllocator
javax.xml.stream.XMLStreamException
public javax.xml.stream.util.XMLEventAllocator newInstance()
newInstance
in interface javax.xml.stream.util.XMLEventAllocator
protected 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.XMLStreamException
protected javax.xml.stream.events.DTD createDTD(javax.xml.stream.XMLStreamReader r, javax.xml.stream.Location loc) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected 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