public interface XMLEventAllocator
XMLInputFactory,
ohos.javax.xml.stream.XMLEventFactory| 限定符和类型 | 方法 | 说明 |
|---|---|---|
XMLEvent |
allocate(XMLStreamReader reader) |
This method allocates an event given the current
state of the XMLStreamReader.
|
void |
allocate(XMLStreamReader reader,
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.
|
XMLEventAllocator |
newInstance() |
This method creates an instance of the XMLEventAllocator.
|
XMLEventAllocator newInstance()
XMLEvent allocate(XMLStreamReader reader) throws XMLStreamException
reader - The XMLStreamReader to allocate fromXMLStreamExceptionvoid allocate(XMLStreamReader reader, XMLEventConsumer consumer) throws XMLStreamException
reader - The XMLStreamReader to allocate fromconsumer - The XMLEventConsumer to add to.XMLStreamException