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
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.