gpt4 book ai didi

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

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

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

XMLErrorReporter.setLocale介绍

[英]Sets the current locale.
[中]设置当前区域设置。

代码示例

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

/**
 * Set the locale to use for messages.
 *
 * @param locale The locale object to use for localization of messages.
 *
 * @exception XNIException Thrown if the parser does not support the
 *                         specified locale.
 */
public void setLocale(Locale locale) throws XNIException {
  fLocale = locale;
  fErrorReporter.setLocale(locale);
} // setLocale(Locale)

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

/**
 * Set the locale to use for messages.
 *
 * @param locale The locale object to use for localization of messages.
 *
 * @exception XNIException Thrown if the parser does not support the
 *                         specified locale.
 */
public void setLocale(Locale locale) throws XNIException {
  fLocale = locale;
  fErrorReporter.setLocale(locale);
} // setLocale(Locale)

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

/**
 * Set the locale to use for messages.
 *
 * @param locale The locale object to use for localization of messages.
 *
 * @exception XNIException Thrown if the parser does not support the
 *                         specified locale.
 */
public void setLocale(Locale locale) throws XNIException {
  fLocale = locale;
  fErrorReporter.setLocale(locale);
} // setLocale(Locale)

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

/**
 * Set the locale to use for messages.
 *
 * @param locale The locale object to use for localization of messages.
 *
 * @exception XNIException Thrown if the parser does not support the
 *                         specified locale.
 */
public void setLocale(Locale locale) {
  fLocale = locale;
  fErrorReporter.setLocale(locale);
} // setLocale(Locale)

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

/**
 * Set the locale to use for messages.
 *
 * @param locale The locale object to use for localization of messages.
 *
 * @exception XNIException Thrown if the parser does not support the
 *                         specified locale.
 */
public void setLocale(Locale locale) {
  fLocale = locale;
  fErrorReporter.setLocale(locale);
} // setLocale(Locale)

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

/**
 * Set the locale to use for messages.
 *
 * @param locale The locale object to use for localization of messages.
 *
 * @exception XNIException Thrown if the parser does not support the
 *                         specified locale.
 */
public void setLocale(Locale locale) {
  fLocale = locale;
  fErrorReporter.setLocale(locale);
} // setLocale(Locale)

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

void setLocale(Locale locale) {
  fLocale = locale;
  fErrorReporter.setLocale(locale);
}

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

/**
 * Set the locale to use for messages.
 *
 * @param locale The locale object to use for localization of messages.
 *
 * @exception XNIException Thrown if the parser does not support the
 *                         specified locale.
 */
public void setLocale(Locale locale) throws XNIException {
  fLocale = locale;
  fErrorReporter.setLocale(locale);
} // setLocale(Locale)
/**

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

/**
 * Set the locale to use for messages.
 *
 * @param locale The locale object to use for localization of messages.
 *
 * @exception XNIException Thrown if the parser does not support the
 *                         specified locale.
 */
public void setLocale(Locale locale) throws XNIException {
  super.setLocale(locale);
  fErrorReporter.setLocale(locale);
} // setLocale(Locale)

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

/** Returns the locale. */
public Locale getLocale() {
  Locale locale = null;
  try {
    locale = (Locale)getProperty(LOCALE);
    fErrorReporter.setLocale(locale);
  }
  catch (Exception e) {
    // ignore
  }
  return locale;
} // getLocale():Locale

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

/**
 * Set the locale to use for messages.
 *
 * @param locale The locale object to use for localization of messages.
 *
 * @exception XNIException Thrown if the parser does not support the
 *                         specified locale.
 */
public void setLocale(Locale locale) throws XNIException {
  super.setLocale(locale);
  fErrorReporter.setLocale(locale);
} // setLocale(Locale)

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

/**
 * Set the locale to use for messages.
 *
 * @param locale The locale object to use for localization of messages.
 *
 * @exception XNIException Thrown if the parser does not support the
 *                         specified locale.
 */
public void setLocale(Locale locale) throws XNIException {
  super.setLocale(locale);
  fErrorReporter.setLocale(locale);
} // setLocale(Locale)

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

/**
   * Sets the locale.
   *
   * @param locale
   *            the new locale
   * @throws XNIException
   *             the xNI exception {@inheritDoc}
   * @see org.apache.xerces.xni.parser.XMLParserConfiguration#setLocale(java.util.Locale)
   */
  @Override
  public void setLocale(final Locale locale) throws XNIException
  {
    try
    {
      setProperty(HTTP_APACHE_ORG_XML_PROPERTIES_LOCALE, locale);
      this.errorReporter.setLocale(locale);
    }
    catch (final Exception e)
    {
    }
  }
}

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

errorReporter.setLocale(fLocale);
errorReporter.setProperty(ERROR_HANDLER, new DefaultErrorHandler());

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