|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.stax2.ri.evt.Stax2EventAllocatorImpl
public class Stax2EventAllocatorImpl
Base implementation of XMLEventAllocator, to be
used either as is, or as a base for more specialized Stax2
event allocator implementation.
| Field Summary |
|---|
| Fields inherited from interface javax.xml.stream.XMLStreamConstants |
|---|
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT |
| Constructor Summary | |
|---|---|
Stax2EventAllocatorImpl()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Stax2EventAllocatorImpl()
| Method Detail |
|---|
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.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.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.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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||