gpt4 book ai didi

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

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

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

WstxEventReader.createNextEvent介绍

暂无

代码示例

代码示例来源: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());
}

代码示例来源:origin: com.fasterxml.woodstox/woodstox-core

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

代码示例来源:origin: FasterXML/woodstox

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

代码示例来源:origin: com.fasterxml.woodstox/woodstox-core

@Override
public XMLEvent nextEvent() throws XMLStreamException
{
  if (mState == STATE_END_OF_INPUT) {
    throwEndOfInput();
  } else if (mState == STATE_INITIAL) {
    mState = STATE_CONTENT;
    return createStartDocumentEvent();
  }
  if (mPeekedEvent != null) {
    XMLEvent evt = mPeekedEvent;
    mPeekedEvent = null;
    if (evt.isEndDocument()) {
      updateStateEndDocument();
    }
    return evt;
  }
  return createNextEvent(true, mReader.next());
}

代码示例来源:origin: FasterXML/woodstox

@Override
public XMLEvent nextEvent() throws XMLStreamException
{
  if (mState == STATE_END_OF_INPUT) {
    throwEndOfInput();
  } else if (mState == STATE_INITIAL) {
    mState = STATE_CONTENT;
    return createStartDocumentEvent();
  }
  if (mPeekedEvent != null) {
    XMLEvent evt = mPeekedEvent;
    mPeekedEvent = null;
    if (evt.isEndDocument()) {
      updateStateEndDocument();
    }
    return evt;
  }
  return createNextEvent(true, mReader.next());
}

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

return createNextEvent(false, next);

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

return createNextEvent(false, next);

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

return createNextEvent(false, next);

代码示例来源:origin: FasterXML/woodstox

return createNextEvent(false, next);

代码示例来源:origin: com.fasterxml.woodstox/woodstox-core

return createNextEvent(false, next);

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