Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XMLEventAllocator
This interface defines a class that allows a user to register a way to allocate events given an XMLStreamReader. An implementation is not required to use the XMLEventFactory implementation but this is recommended. The XMLEventAllocator can be set on an XMLInputFactory using the property "javax.xml.stream.allocator"
XMLInputFactory
,
XMLEventFactory
Modifier and Type | Method and Description |
---|---|
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. |
Method Detail |
---|
XMLEventAllocator newInstance()
XMLEvent allocate(XMLStreamReader reader) throws XMLStreamException
reader
- The XMLStreamReader to allocate fromXMLStreamException
void allocate(XMLStreamReader reader, XMLEventConsumer consumer) throws XMLStreamException
reader
- The XMLStreamReader to allocate fromconsumer
- The XMLEventConsumer to add to.XMLStreamException
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.