java类javax.xml.stream.util.XMLEventConsumer的实例源码

XMLEventAllocatorImpl.java 文件源码 项目:openjdk-jdk10 阅读 18 收藏 0 点赞 0 评论 0
public void allocate(XMLStreamReader xMLStreamReader, XMLEventConsumer xMLEventConsumer)
        throws XMLStreamException {
    XMLEvent currentEvent = getXMLEvent(xMLStreamReader);
    if (currentEvent != null) {
        xMLEventConsumer.add(currentEvent);
    }

    return;
}
Stockpile.java 文件源码 项目:svg-stockpile 阅读 19 收藏 0 点赞 0 评论 0
/**
 * 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;
}
XMLSecEventAllocator.java 文件源码 项目:xmlsec-gost 阅读 17 收藏 0 点赞 0 评论 0
@Override
public void allocate(XMLStreamReader reader, XMLEventConsumer consumer) throws XMLStreamException {
    xmlEventAllocator.allocate(reader, consumer);
}
XMLEventAllocatorImpl.java 文件源码 项目:javify 阅读 22 收藏 0 点赞 0 评论 0
public void allocate(XMLStreamReader reader, XMLEventConsumer consumer)
  throws XMLStreamException
{
  consumer.add(allocate(reader));
}
XMLEventAllocatorImpl.java 文件源码 项目:jvm-stm 阅读 22 收藏 0 点赞 0 评论 0
public void allocate(XMLStreamReader reader, XMLEventConsumer consumer)
  throws XMLStreamException
{
  consumer.add(allocate(reader));
}
DefaultEventAllocator.java 文件源码 项目:woodstox 阅读 18 收藏 0 点赞 0 评论 0
@Override
public void allocate(XMLStreamReader r, XMLEventConsumer consumer)
    throws XMLStreamException
{
    consumer.add(allocate(r));
}
XMLEventAllocatorImpl.java 文件源码 项目:JamVM-PH 阅读 21 收藏 0 点赞 0 评论 0
public void allocate(XMLStreamReader reader, XMLEventConsumer consumer)
  throws XMLStreamException
{
  consumer.add(allocate(reader));
}
XMLEventAllocatorImpl.java 文件源码 项目:classpath 阅读 22 收藏 0 点赞 0 评论 0
public void allocate(XMLStreamReader reader, XMLEventConsumer consumer)
  throws XMLStreamException
{
  consumer.add(allocate(reader));
}
StAXEventAllocatorBase.java 文件源码 项目:OpenJSharp 阅读 22 收藏 0 点赞 0 评论 0
/**
* 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));

 }
StAXEventAllocatorBase.java 文件源码 项目:openjdk-jdk10 阅读 23 收藏 0 点赞 0 评论 0
/**
* 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));

 }
StAXEventAllocatorBase.java 文件源码 项目:openjdk9 阅读 22 收藏 0 点赞 0 评论 0
/**
* 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));

 }
StAXEventAllocatorBase.java 文件源码 项目:lookaside_java-1.8.0-openjdk 阅读 24 收藏 0 点赞 0 评论 0
/**
* 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));

 }
StAXEventAllocatorBase.java 文件源码 项目:infobip-open-jdk-8 阅读 23 收藏 0 点赞 0 评论 0
/**
* 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));

 }
StaxEventContentHandler.java 文件源码 项目:common_utils 阅读 22 收藏 0 点赞 0 评论 0
/**
 * 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;
}
StaxEventContentHandler.java 文件源码 项目:common_utils 阅读 19 收藏 0 点赞 0 评论 0
/**
 * 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;
}
StaxEventContentHandler.java 文件源码 项目:class-guard 阅读 22 收藏 0 点赞 0 评论 0
/**
 * 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;
}
StaxEventContentHandler.java 文件源码 项目:class-guard 阅读 19 收藏 0 点赞 0 评论 0
/**
 * 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;
}
StAXEventAllocatorBase.java 文件源码 项目:OLD-OpenJDK8 阅读 22 收藏 0 点赞 0 评论 0
/**
* 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));

 }
StAXEventAllocatorBase.java 文件源码 项目:openjdk-icedtea7 阅读 28 收藏 0 点赞 0 评论 0
/**
* 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));

 }


问题


面经


文章

微信
公众号

扫码关注公众号