public XMLEventAllocator newInstance() { return new Stax2EventAllocatorImpl(); }
public XMLEvent allocate(XMLStreamReader r) throws XMLStreamException Location loc = getLocation(r); return new CommentEventImpl(loc, r.getText()); case DTD: return createDTD(r, loc); return createStartElement(r, loc); return createEntityReference(r, loc);
@Override public XMLEvent allocate(XMLStreamReader r) throws XMLStreamException { if (r.getEventType() == AsyncXMLStreamReader.EVENT_INCOMPLETE) { return IncompleteEvent.instance(); } return super.allocate(r); }
@Override public XMLEvent allocate(XMLStreamReader r) throws XMLStreamException { if (r.getEventType() == AsyncXMLStreamReader.EVENT_INCOMPLETE) { return IncompleteEvent.instance(); } return super.allocate(r); }
public XMLEvent currentAsEvent() throws XMLStreamException { if (_allocator == null) { _allocator = new Stax2EventAllocatorImpl(); } return _allocator.allocate(_streamReader); }
public void allocate(XMLStreamReader r, XMLEventConsumer consumer) throws XMLStreamException { consumer.add(allocate(r)); }
public XMLEvent currentAsEvent() throws XMLStreamException { if (_allocator == null) { _allocator = new Stax2EventAllocatorImpl(); } return _allocator.allocate(_streamReader); }