javax.xml.stream.util.XMLEventConsumer Java Examples

The following examples show how to use javax.xml.stream.util.XMLEventConsumer. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: XMLEventAllocatorImpl.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
public void allocate(XMLStreamReader xMLStreamReader, XMLEventConsumer xMLEventConsumer)
        throws XMLStreamException {
    XMLEvent currentEvent = getXMLEvent(xMLStreamReader);
    if (currentEvent != null) {
        xMLEventConsumer.add(currentEvent);
    }

    return;
}
 
Example #2
Source File: XMLEventAllocatorImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void allocate(XMLStreamReader xMLStreamReader, XMLEventConsumer xMLEventConsumer)
        throws XMLStreamException {
    XMLEvent currentEvent = getXMLEvent(xMLStreamReader);
    if (currentEvent != null) {
        xMLEventConsumer.add(currentEvent);
    }

    return;
}
 
Example #3
Source File: DefaultEventAllocator.java    From woodstox with Apache License 2.0 4 votes vote down vote up
@Override
public void allocate(XMLStreamReader r, XMLEventConsumer consumer)
    throws XMLStreamException
{
    consumer.add(allocate(r));
}
 
Example #4
Source File: StAXEventAllocatorBase.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
* 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.
* @param streamReader The XMLStreamReader to allocate from
* @param consumer The XMLEventConsumer to add to.
*/
 public void allocate(XMLStreamReader streamReader, XMLEventConsumer consumer) throws XMLStreamException {
     consumer.add(getXMLEvent(streamReader));

 }
 
Example #5
Source File: StAXEventAllocatorBase.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
* 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.
* @param streamReader The XMLStreamReader to allocate from
* @param consumer The XMLEventConsumer to add to.
*/
 public void allocate(XMLStreamReader streamReader, XMLEventConsumer consumer) throws XMLStreamException {
     consumer.add(getXMLEvent(streamReader));

 }
 
Example #6
Source File: StAXEventAllocatorBase.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
* 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.
* @param streamReader The XMLStreamReader to allocate from
* @param consumer The XMLEventConsumer to add to.
*/
 public void allocate(XMLStreamReader streamReader, XMLEventConsumer consumer) throws XMLStreamException {
     consumer.add(getXMLEvent(streamReader));

 }
 
Example #7
Source File: StAXEventAllocatorBase.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
* 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.
* @param streamReader The XMLStreamReader to allocate from
* @param consumer The XMLEventConsumer to add to.
*/
 public void allocate(XMLStreamReader streamReader, XMLEventConsumer consumer) throws XMLStreamException {
     consumer.add(getXMLEvent(streamReader));

 }
 
Example #8
Source File: StAXEventAllocatorBase.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
* 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.
* @param streamReader The XMLStreamReader to allocate from
* @param consumer The XMLEventConsumer to add to.
*/
 public void allocate(XMLStreamReader streamReader, XMLEventConsumer consumer) throws XMLStreamException {
     consumer.add(getXMLEvent(streamReader));

 }
 
Example #9
Source File: StAXEventAllocatorBase.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
* 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.
* @param streamReader The XMLStreamReader to allocate from
* @param consumer The XMLEventConsumer to add to.
*/
 public void allocate(XMLStreamReader streamReader, XMLEventConsumer consumer) throws XMLStreamException {
     consumer.add(getXMLEvent(streamReader));

 }
 
Example #10
Source File: StAXEventAllocatorBase.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
* 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.
* @param streamReader The XMLStreamReader to allocate from
* @param consumer The XMLEventConsumer to add to.
*/
 public void allocate(XMLStreamReader streamReader, XMLEventConsumer consumer) throws XMLStreamException {
     consumer.add(getXMLEvent(streamReader));

 }
 
Example #11
Source File: StAXEventAllocatorBase.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
* 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.
* @param streamReader The XMLStreamReader to allocate from
* @param consumer The XMLEventConsumer to add to.
*/
 public void allocate(XMLStreamReader streamReader, XMLEventConsumer consumer) throws XMLStreamException {
     consumer.add(getXMLEvent(streamReader));

 }