public class StAXEventAllocatorBase extends Object implements javax.xml.stream.util.XMLEventAllocator
| Constructor and Description |
|---|
StAXEventAllocatorBase()
Creates a new instance of XMLEventAllocator
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttributes(StartElementEvent event,
javax.xml.stream.XMLStreamReader streamReader) |
protected void |
addNamespaces(EndElementEvent event,
javax.xml.stream.XMLStreamReader streamReader) |
protected void |
addNamespaces(StartElementEvent event,
javax.xml.stream.XMLStreamReader streamReader) |
javax.xml.stream.events.XMLEvent |
allocate(javax.xml.stream.XMLStreamReader streamReader)
This method allocates an event given the current state of the XMLStreamReader.
|
void |
allocate(javax.xml.stream.XMLStreamReader streamReader,
javax.xml.stream.util.XMLEventConsumer consumer)
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.
|
javax.xml.stream.util.XMLEventAllocator |
newInstance()
This method creates an instance of the XMLEventAllocator.
|
public StAXEventAllocatorBase()
public javax.xml.stream.util.XMLEventAllocator newInstance()
newInstance in interface javax.xml.stream.util.XMLEventAllocatorpublic javax.xml.stream.events.XMLEvent allocate(javax.xml.stream.XMLStreamReader streamReader) throws javax.xml.stream.XMLStreamException
allocate in interface javax.xml.stream.util.XMLEventAllocatorstreamReader - The XMLStreamReader to allocate fromjavax.xml.stream.XMLStreamExceptionpublic void allocate(javax.xml.stream.XMLStreamReader streamReader, javax.xml.stream.util.XMLEventConsumer consumer) throws javax.xml.stream.XMLStreamException
allocate in interface javax.xml.stream.util.XMLEventAllocatorstreamReader - The XMLStreamReader to allocate fromconsumer - The XMLEventConsumer to add to.javax.xml.stream.XMLStreamExceptionprotected void addAttributes(StartElementEvent event, javax.xml.stream.XMLStreamReader streamReader)
protected void addNamespaces(StartElementEvent event, javax.xml.stream.XMLStreamReader streamReader)
protected void addNamespaces(EndElementEvent event, javax.xml.stream.XMLStreamReader streamReader)
Copyright © 2012 Oracle Corpration. All Rights Reserved.