Java 类javax.xml.stream.util.XMLEventConsumer 实例源码

项目:openjdk-jdk10    文件:XMLEventAllocatorImpl.java   
public void allocate(XMLStreamReader xMLStreamReader, XMLEventConsumer xMLEventConsumer)
        throws XMLStreamException {
    XMLEvent currentEvent = getXMLEvent(xMLStreamReader);
    if (currentEvent != null) {
        xMLEventConsumer.add(currentEvent);
    }

    return;
}
项目:svg-stockpile    文件:Stockpile.java   
/**
 * Adds the {@link XMLEvent}s in this stockpile to an {@link XMLEventConsumer}.
 * @param consumer The {@link XMLEventConsumer} to add the {@link XMLEvent}s to.
 * @return The {@link Stockpile} instance for chaining.
 * @throws XMLStreamException If an XML error occurs.
 */
public Stockpile addEventsTo(XMLEventConsumer consumer) throws XMLStreamException {
    for (XMLEvent event : events) {
        consumer.add(event);
    }

    return this;
}
项目:xmlsec-gost    文件:XMLSecEventAllocator.java   
@Override
public void allocate(XMLStreamReader reader, XMLEventConsumer consumer) throws XMLStreamException {
    xmlEventAllocator.allocate(reader, consumer);
}
项目:javify    文件:XMLEventAllocatorImpl.java   
public void allocate(XMLStreamReader reader, XMLEventConsumer consumer)
  throws XMLStreamException
{
  consumer.add(allocate(reader));
}
项目:jvm-stm    文件:XMLEventAllocatorImpl.java   
public void allocate(XMLStreamReader reader, XMLEventConsumer consumer)
  throws XMLStreamException
{
  consumer.add(allocate(reader));
}
项目:woodstox    文件:DefaultEventAllocator.java   
@Override
public void allocate(XMLStreamReader r, XMLEventConsumer consumer)
    throws XMLStreamException
{
    consumer.add(allocate(r));
}
项目:JamVM-PH    文件:XMLEventAllocatorImpl.java   
public void allocate(XMLStreamReader reader, XMLEventConsumer consumer)
  throws XMLStreamException
{
  consumer.add(allocate(reader));
}
项目:classpath    文件:XMLEventAllocatorImpl.java   
public void allocate(XMLStreamReader reader, XMLEventConsumer consumer)
  throws XMLStreamException
{
  consumer.add(allocate(reader));
}
项目:OpenJSharp    文件:StAXEventAllocatorBase.java   
/**
* 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));

 }
项目:openjdk-jdk10    文件:StAXEventAllocatorBase.java   
/**
* 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));

 }
项目:openjdk9    文件:StAXEventAllocatorBase.java   
/**
* 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));

 }
项目:lookaside_java-1.8.0-openjdk    文件:StAXEventAllocatorBase.java   
/**
* 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));

 }
项目:infobip-open-jdk-8    文件:StAXEventAllocatorBase.java   
/**
* 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));

 }
项目:common_utils    文件:StaxEventContentHandler.java   
/**
 * Construct a new instance of the {@code StaxEventContentHandler} that writes to the given
 * {@code XMLEventConsumer}. A default {@code XMLEventFactory} will be created.
 *
 * @param consumer the consumer to write events to
 */
StaxEventContentHandler(XMLEventConsumer consumer) {
    this.eventFactory = XMLEventFactory.newInstance();
    this.eventConsumer = consumer;
}
项目:common_utils    文件:StaxEventContentHandler.java   
/**
 * Construct a new instance of the {@code StaxEventContentHandler} that uses the given
 * event factory to create events and writes to the given {@code XMLEventConsumer}.
 *
 * @param consumer the consumer to write events to
 * @param factory  the factory used to create events
 */
StaxEventContentHandler(XMLEventConsumer consumer, XMLEventFactory factory) {
    this.eventFactory = factory;
    this.eventConsumer = consumer;
}
项目:class-guard    文件:StaxEventContentHandler.java   
/**
 * Construct a new instance of the {@code StaxEventContentHandler} that writes to the given
 * {@code XMLEventConsumer}. A default {@code XMLEventFactory} will be created.
 * @param consumer the consumer to write events to
 */
StaxEventContentHandler(XMLEventConsumer consumer) {
    this.eventFactory = XMLEventFactory.newInstance();
    this.eventConsumer = consumer;
}
项目:class-guard    文件:StaxEventContentHandler.java   
/**
 * Construct a new instance of the {@code StaxEventContentHandler} that uses the given
 * event factory to create events and writes to the given {@code XMLEventConsumer}.
 * @param consumer the consumer to write events to
 * @param factory  the factory used to create events
 */
StaxEventContentHandler(XMLEventConsumer consumer, XMLEventFactory factory) {
    this.eventFactory = factory;
    this.eventConsumer = consumer;
}
项目:OLD-OpenJDK8    文件:StAXEventAllocatorBase.java   
/**
* 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));

 }
项目:openjdk-icedtea7    文件:StAXEventAllocatorBase.java   
/**
* 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));

 }