com.ctc.wstx.api.ReaderConfig.inputParsingModeDocuments()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(7.5k)|赞(0)|评价(0)|浏览(83)

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

ReaderConfig.inputParsingModeDocuments介绍

暂无

代码示例

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

/**
 * Method called if a root-level element is found after the main
 * root element was closed. This is legal in multi-doc parsing
 * mode (and in fragment mode), but not in the default single-doc
 * mode. 
 *
 * @return Token to return
 */
private int handleExtraRoot(char c)
  throws XMLStreamException
{
  if (!mConfig.inputParsingModeDocuments()) {
    /* Has to be single-doc mode, since fragment mode
     * should never get here (since fragment mode never has epilog
     * or prolog modes)
     */
    throwParseError("Illegal to have multiple roots (start tag in epilog?).");
  }
  // Need to push back the char, since it is the first char of elem name
  --mInputPtr;
  return handleMultiDocStart(START_ELEMENT);
}

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

if (!mConfig.inputParsingModeDocuments()) {
  throwParseError(ErrorConsts.ERR_WF_PI_XML_TARGET, target, null);

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

public WstxEventReader(XMLEventAllocator a, XMLStreamReader2 r)
{
  mAllocator = a;
  mReader = r;
  mCfgMultiDocMode = (r instanceof StreamScanner)
      && ((StreamScanner) r).getConfig().inputParsingModeDocuments();
}

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

public WstxEventReader(XMLEventAllocator a, XMLStreamReader2 r)
{
  mAllocator = a;
  mReader = r;
  mCfgMultiDocMode = (r instanceof StreamScanner)
      && ((StreamScanner) r).getConfig().inputParsingModeDocuments();
}

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

if (mConfig.inputParsingModeDocuments()) {
  if (!mStDoctypeFound) {
    mCurrToken = handleMultiDocStart(DTD);

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

/**
 * Method called if a root-level element is found after the main
 * root element was closed. This is legal in multi-doc parsing
 * mode (and in fragment mode), but not in the default single-doc
 * mode. 
 *
 * @return Token to return
 */
private int handleExtraRoot(char c)
  throws XMLStreamException
{
  if (!mConfig.inputParsingModeDocuments()) {
    /* Has to be single-doc mode, since fragment mode
     * should never get here (since fragment mode never has epilog
     * or prolog modes)
     */
    throwParseError("Illegal to have multiple roots (start tag in epilog?).");
  }
  // Need to push back the char, since it is the first char of elem name
  --mInputPtr;
  return handleMultiDocStart(START_ELEMENT);
}

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

/**
 * Method called if a root-level element is found after the main
 * root element was closed. This is legal in multi-doc parsing
 * mode (and in fragment mode), but not in the default single-doc
 * mode. 
 * @param c Character passed in (not currently used)
 *
 * @return Token to return
 */
private int handleExtraRoot(char c)
  throws XMLStreamException
{
  if (!mConfig.inputParsingModeDocuments()) {
    /* Has to be single-doc mode, since fragment mode
     * should never get here (since fragment mode never has epilog
     * or prolog modes)
     */
    throwParseError("Illegal to have multiple roots (start tag in epilog?).");
  }
  // Need to push back the char, since it is the first char of elem name
  --mInputPtr;
  return handleMultiDocStart(START_ELEMENT);
}

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl

/**
 * Method called if a root-level element is found after the main
 * root element was closed. This is legal in multi-doc parsing
 * mode (and in fragment mode), but not in the default single-doc
 * mode. 
 *
 * @return Token to return
 */
private int handleExtraRoot(char c)
  throws XMLStreamException
{
  if (!mConfig.inputParsingModeDocuments()) {
    /* Has to be single-doc mode, since fragment mode
     * should never get here (since fragment mode never has epilog
     * or prolog modes)
     */
    throwParseError("Illegal to have multiple roots (start tag in epilog?).");
  }
  // Need to push back the char, since it is the first char of elem name
  --mInputPtr;
  return handleMultiDocStart(START_ELEMENT);
}

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

/**
 * Method called if a root-level element is found after the main
 * root element was closed. This is legal in multi-doc parsing
 * mode (and in fragment mode), but not in the default single-doc
 * mode. 
 *
 * @return Token to return
 */
private int handleExtraRoot(char c)
  throws XMLStreamException
{
  if (!mConfig.inputParsingModeDocuments()) {
    /* Has to be single-doc mode, since fragment mode
     * should never get here (since fragment mode never has epilog
     * or prolog modes)
     */
    throwParseError("Illegal to have multiple roots (start tag in epilog?).");
  }
  // Need to push back the char, since it is the first char of elem name
  --mInputPtr;
  return handleMultiDocStart(START_ELEMENT);
}

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

/**
 * Method called if a root-level element is found after the main
 * root element was closed. This is legal in multi-doc parsing
 * mode (and in fragment mode), but not in the default single-doc
 * mode. 
 *
 * @return Token to return
 */
private int handleExtraRoot(char c)
  throws XMLStreamException
{
  if (!mConfig.inputParsingModeDocuments()) {
    /* Has to be single-doc mode, since fragment mode
     * should never get here (since fragment mode never has epilog
     * or prolog modes)
     */
    throwParseError("Illegal to have multiple roots (start tag in epilog?).");
  }
  // Need to push back the char, since it is the first char of elem name
  --mInputPtr;
  return handleMultiDocStart(START_ELEMENT);
}

代码示例来源:origin: Nextdoor/bender

/**
 * Method called if a root-level element is found after the main
 * root element was closed. This is legal in multi-doc parsing
 * mode (and in fragment mode), but not in the default single-doc
 * mode. 
 * @param c Character passed in (not currently used)
 *
 * @return Token to return
 */
private int handleExtraRoot(char c)
  throws XMLStreamException
{
  if (!mConfig.inputParsingModeDocuments()) {
    /* Has to be single-doc mode, since fragment mode
     * should never get here (since fragment mode never has epilog
     * or prolog modes)
     */
    throwParseError("Illegal to have multiple roots (start tag in epilog?).");
  }
  // Need to push back the char, since it is the first char of elem name
  --mInputPtr;
  return handleMultiDocStart(START_ELEMENT);
}

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

/**
 * Method called if a root-level element is found after the main
 * root element was closed. This is legal in multi-doc parsing
 * mode (and in fragment mode), but not in the default single-doc
 * mode. 
 * @param c Character passed in (not currently used)
 *
 * @return Token to return
 */
private int handleExtraRoot(char c)
  throws XMLStreamException
{
  if (!mConfig.inputParsingModeDocuments()) {
    /* Has to be single-doc mode, since fragment mode
     * should never get here (since fragment mode never has epilog
     * or prolog modes)
     */
    throwParseError("Illegal to have multiple roots (start tag in epilog?).");
  }
  // Need to push back the char, since it is the first char of elem name
  --mInputPtr;
  return handleMultiDocStart(START_ELEMENT);
}

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

if (!mConfig.inputParsingModeDocuments()) {
  throwParseError(ErrorConsts.ERR_WF_PI_XML_TARGET, target);

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

if (!mConfig.inputParsingModeDocuments()) {
  throwParseError(ErrorConsts.ERR_WF_PI_XML_TARGET, target, null);

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

if (!mConfig.inputParsingModeDocuments()) {
  throwParseError(ErrorConsts.ERR_WF_PI_XML_TARGET, target);

代码示例来源:origin: Nextdoor/bender

if (!mConfig.inputParsingModeDocuments()) {
  throwParseError(ErrorConsts.ERR_WF_PI_XML_TARGET, target, null);

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl

if (!mConfig.inputParsingModeDocuments()) {
  throwParseError(ErrorConsts.ERR_WF_PI_XML_TARGET, target, null);

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

if (!mConfig.inputParsingModeDocuments()) {
  throwParseError(ErrorConsts.ERR_WF_PI_XML_TARGET, target);

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

if (mConfig.inputParsingModeDocuments()) {
  if (!mStDoctypeFound) {
    mCurrToken = handleMultiDocStart(DTD);

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

if (mConfig.inputParsingModeDocuments()) {
  if (!mStDoctypeFound) {
    mCurrToken = handleMultiDocStart(DTD);

相关文章

微信公众号

最新文章

更多

ReaderConfig类方法