gpt4 book ai didi

com.ctc.wstx.evt.WstxEventReader.createStartEvent()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 03:09:05 25 4
gpt4 key购买 nike

本文整理了Java中com.ctc.wstx.evt.WstxEventReader.createStartEvent()方法的一些代码示例,展示了WstxEventReader.createStartEvent()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WstxEventReader.createStartEvent()方法的具体详情如下:
包路径:com.ctc.wstx.evt.WstxEventReader
类名称:WstxEventReader
方法名:createStartEvent

WstxEventReader.createStartEvent介绍

[英]Method called to create the very first START_DOCUMENT event.
[中]方法来创建第一个START_文档事件。

代码示例

代码示例来源:origin: woodstox/wstx-asl

public XMLEvent peek()
  throws XMLStreamException
{
  if (mPeekedEvent == null) {
    if (mState == STATE_EOD) {
      // 06-Mar-2006, TSa: Fixed as per Arjen's suggestion:
      //throwEOD();
      return null;
    }
    if (mState == STATE_INITIAL) {
      // Not sure what it should be... but this should do:
      mPrePeekEvent = START_DOCUMENT;
      mPeekedEvent = createStartEvent();
      mState = STATE_CONTENT;
    } else {
      mPrePeekEvent = mReader.getEventType();
      mPeekedEvent = createNextEvent(false, mReader.next());
    }
  }
  return mPeekedEvent;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

public XMLEvent peek()
  throws XMLStreamException
{
  if (mPeekedEvent == null) {
    if (mState == STATE_EOD) {
      // 06-Mar-2006, TSa: Fixed as per Arjen's suggestion:
      //throwEOD();
      return null;
    }
    if (mState == STATE_INITIAL) {
      // Not sure what it should be... but this should do:
      mPrePeekEvent = START_DOCUMENT;
      mPeekedEvent = createStartEvent();
      mState = STATE_CONTENT;
    } else {
      mPrePeekEvent = mReader.getEventType();
      mPeekedEvent = createNextEvent(false, mReader.next());
    }
  }
  return mPeekedEvent;
}

代码示例来源:origin: woodstox/wstx-lgpl

public XMLEvent peek()
  throws XMLStreamException
{
  if (mPeekedEvent == null) {
    if (mState == STATE_EOD) {
      // 06-Mar-2006, TSa: Fixed as per Arjen's suggestion:
      //throwEOD();
      return null;
    }
    if (mState == STATE_INITIAL) {
      // Not sure what it should be... but this should do:
      mPrePeekEvent = START_DOCUMENT;
      mPeekedEvent = createStartEvent();
      mState = STATE_CONTENT;
    } else {
      mPrePeekEvent = mReader.getEventType();
      mPeekedEvent = createNextEvent(false, mReader.next());
    }
  }
  return mPeekedEvent;
}

代码示例来源:origin: woodstox/wstx-asl

public XMLEvent nextEvent()
  throws XMLStreamException
{
  if (mState == STATE_EOD) {
    throw new NoSuchElementException();
  } else if (mState == STATE_INITIAL) {
    mState = STATE_CONTENT;
    return createStartEvent();
  }
  if (mPeekedEvent != null) {
    XMLEvent evt = mPeekedEvent;
    mPeekedEvent = null;
    if (evt.isEndDocument()) {
      mState = STATE_EOD;
    }
    return evt;
  }
  return createNextEvent(true, mReader.next());
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

public XMLEvent nextEvent()
  throws XMLStreamException
{
  if (mState == STATE_EOD) {
    throw new NoSuchElementException();
  } else if (mState == STATE_INITIAL) {
    mState = STATE_CONTENT;
    return createStartEvent();
  }
  if (mPeekedEvent != null) {
    XMLEvent evt = mPeekedEvent;
    mPeekedEvent = null;
    if (evt.isEndDocument()) {
      mState = STATE_EOD;
    }
    return evt;
  }
  return createNextEvent(true, mReader.next());
}

代码示例来源:origin: woodstox/wstx-lgpl

public XMLEvent nextEvent()
  throws XMLStreamException
{
  if (mState == STATE_EOD) {
    throw new NoSuchElementException();
  } else if (mState == STATE_INITIAL) {
    mState = STATE_CONTENT;
    return createStartEvent();
  }
  if (mPeekedEvent != null) {
    XMLEvent evt = mPeekedEvent;
    mPeekedEvent = null;
    if (evt.isEndDocument()) {
      mState = STATE_EOD;
    }
    return evt;
  }
  return createNextEvent(true, mReader.next());
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com