public interface XMLEventAllocator
XMLInputFactory , XMLEventFactory
| Modifier and Type | Method and Description |
|---|---|
XMLEvent |
allocate(XMLStreamReader reader)
该方法分配给定XMLStreamReader的当前状态的事件。
|
void |
allocate(XMLStreamReader reader, XMLEventConsumer consumer)
该方法分配给定XMLStreamReader的当前状态的事件或事件集,并将事件或事件集添加到传入的消费者。
|
XMLEventAllocator |
newInstance()
此方法创建XMLEventAllocator的实例。
|
XMLEventAllocator newInstance()
XMLEvent allocate(XMLStreamReader reader) throws XMLStreamException
reader - 要从中分配的XMLStreamReader
XMLStreamException
void allocate(XMLStreamReader reader, XMLEventConsumer consumer) throws XMLStreamException
reader - 要从中分配的XMLStreamReader
consumer - 要添加的XMLEventConsumer。
XMLStreamException