gpt4 book ai didi

org.apache.xerces.impl.XMLErrorReporter.reset()方法的使用及代码示例

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

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

XMLErrorReporter.reset介绍

[英]Resets the component. The component can query the component manager about any features and properties that affect the operation of the component.
[中]重置组件。组件可以向组件管理器查询影响组件操作的任何功能和特性。

代码示例

代码示例来源:origin: com.rackspace.apache/xerces2-xsd11

/** Calls reset on each of the components owned by this component manager. **/
public void reset() throws XNIException {
  fNamespaceContext.reset();
  fValidationManager.reset();
  fEntityManager.reset(this);
  fErrorReporter.reset(this);
  fSchemaValidator.reset(this);
  // Mark configuration as fixed.
  fConfigUpdated = false;
}

代码示例来源:origin: nekohtml/nekodtd

/** Parses the DTD file specified by the given input source. */
public void parse(XMLInputSource source) throws XNIException, IOException {
  fScanner.reset(this);
  fEntityManager.reset(this);
  fErrorReporter.reset(this);
  fScanner.setInputSource(source);
  try {
    fScanner.scanDTDExternalSubset(true);
  }
  catch (EOFException e) {
    // ignore
    // NOTE: This is to work around a problem in the Xerces
    //       DTD scanner implementation when used standalone. -Ac
  }
} // parse(XMLInputSource)

代码示例来源:origin: de.alpharogroup/jaulp.xml

/**
 * Parses the.
 *
 * @param source
 *            the source
 * @throws XNIException
 *             the xNI exception
 * @throws IOException
 *             Signals that an I/O exception has occurred. {@inheritDoc}
 * @see org.apache.xerces.xni.parser.XMLParserConfiguration#parse(org.apache.xerces.xni.parser.XMLInputSource)
 */
@Override
public void parse(final XMLInputSource source) throws XNIException, IOException
{
  this.scanner.reset(this);
  this.entityManager.reset(this);
  this.errorReporter.reset(this);
  this.scanner.setInputSource(source);
  try
  {
    this.scanner.scanDTDExternalSubset(true);
  }
  catch (final EOFException e)
  {
  }
}

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