本文整理了Java中org.xml.sax.Parser.setLocale()
方法的一些代码示例,展示了Parser.setLocale()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parser.setLocale()
方法的具体详情如下:
包路径:org.xml.sax.Parser
类名称:Parser
方法名:setLocale
[英]Allow an application to request a locale for errors and warnings.
SAX parsers are not required to provide localisation for errors and warnings; if they cannot support the requested locale, however, they must throw a SAX exception. Applications may not request a locale change in the middle of a parse.
[中]允许应用程序请求错误和警告的区域设置。
SAX解析器不需要为错误和警告提供本地化;但是,如果它们不能支持请求的区域设置,则必须抛出SAX异常。应用程序可能不会在解析过程中请求区域更改。
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri
/** SAX Parser API. */
public void setLocale(Locale locale) throws SAXException {
parser.setLocale(locale);
}
代码示例来源:origin: xml-resolver/xml-resolver
/** SAX Parser API. */
public void setLocale(Locale locale) throws SAXException {
parser.setLocale(locale);
}
代码示例来源:origin: com.sun.org.apache.xml.internal/resolver
/** SAX Parser API. */
public void setLocale(Locale locale) throws SAXException {
parser.setLocale(locale);
}
代码示例来源:origin: org.apache.xml/com.springsource.org.apache.xml.resolver
/** SAX Parser API. */
public void setLocale(Locale locale) throws SAXException {
parser.setLocale(locale);
}
代码示例来源:origin: com.sun.xml.parsers/jaxp-ri
/** SAX Parser API. */
public void setLocale(Locale locale) throws SAXException {
parser.setLocale(locale);
}
代码示例来源:origin: sun-jaxb/jaxb-xjc
/** SAX Parser API. */
public void setLocale(Locale locale) throws SAXException {
parser.setLocale(locale);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver
/** SAX Parser API. */
public void setLocale(Locale locale) throws SAXException {
parser.setLocale(locale);
}
内容来源于网络,如有侵权,请联系作者删除!