locale.html

来自「j2se5-api-zh,java文档的中文版本」· HTML 代码 · 共 642 行 · 第 1/3 页

HTML
642
字号
<CODE>static&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A></CODE></FONT></TD><TD><CODE><B>Locale.</B><B><A HREF="../Locale.html#GERMAN">GERMAN</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用于表示语言的有用常量。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A></CODE></FONT></TD><TD><CODE><B>Locale.</B><B><A HREF="../Locale.html#GERMANY">GERMANY</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用于表示国家的有用常量。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A></CODE></FONT></TD><TD><CODE><B>Locale.</B><B><A HREF="../Locale.html#ITALIAN">ITALIAN</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用于表示语言的有用常量。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A></CODE></FONT></TD><TD><CODE><B>Locale.</B><B><A HREF="../Locale.html#ITALY">ITALY</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用于表示国家的有用常量。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A></CODE></FONT></TD><TD><CODE><B>Locale.</B><B><A HREF="../Locale.html#JAPAN">JAPAN</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用于表示国家的有用常量。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A></CODE></FONT></TD><TD><CODE><B>Locale.</B><B><A HREF="../Locale.html#JAPANESE">JAPANESE</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用于表示语言的有用常量。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A></CODE></FONT></TD><TD><CODE><B>Locale.</B><B><A HREF="../Locale.html#KOREA">KOREA</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用于表示国家的有用常量。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A></CODE></FONT></TD><TD><CODE><B>Locale.</B><B><A HREF="../Locale.html#KOREAN">KOREAN</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用于表示语言的有用常量。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A></CODE></FONT></TD><TD><CODE><B>Locale.</B><B><A HREF="../Locale.html#PRC">PRC</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用于表示国家的有用常量。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A></CODE></FONT></TD><TD><CODE><B>Locale.</B><B><A HREF="../Locale.html#SIMPLIFIED_CHINESE">SIMPLIFIED_CHINESE</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用于表示语言的有用常量。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A></CODE></FONT></TD><TD><CODE><B>Locale.</B><B><A HREF="../Locale.html#TAIWAN">TAIWAN</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用于表示国家的有用常量。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A></CODE></FONT></TD><TD><CODE><B>Locale.</B><B><A HREF="../Locale.html#TRADITIONAL_CHINESE">TRADITIONAL_CHINESE</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用于表示语言的有用常量。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A></CODE></FONT></TD><TD><CODE><B>Locale.</B><B><A HREF="../Locale.html#UK">UK</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用于表示国家的有用常量。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A></CODE></FONT></TD><TD><CODE><B>Locale.</B><B><A HREF="../Locale.html#US">US</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用于表示国家的有用常量。</TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TH ALIGN="left" COLSPAN="2">返回 <A HREF="../Locale.html" title="java.util 中的类">Locale</A> 的 <A HREF="../package-summary.html">java.util</A> 中的方法</FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A>[]</CODE></FONT></TD><TD><CODE><B>Locale.</B><B><A HREF="../Locale.html#getAvailableLocales()">getAvailableLocales</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回所有已安装语言环境的数组。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A>[]</CODE></FONT></TD><TD><CODE><B>Calendar.</B><B><A HREF="../Calendar.html#getAvailableLocales()">getAvailableLocales</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回所有语言环境的数组,此类的 <code>getInstance</code> 方法可以为其返回本地化的实例。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A></CODE></FONT></TD><TD><CODE><B>Locale.</B><B><A HREF="../Locale.html#getDefault()">getDefault</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;获得此 Java 虚拟机实例的当前默认语言环境值。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A></CODE></FONT></TD><TD><CODE><B>ResourceBundle.</B><B><A HREF="../ResourceBundle.html#getLocale()">getLocale</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回此资源包的语言环境。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A></CODE></FONT></TD><TD><CODE><B>Scanner.</B><B><A HREF="../Scanner.html#locale()">locale</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回此扫描器的语言环境。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../Locale.html" title="java.util 中的类">Locale</A></CODE></FONT></TD><TD><CODE><B>Formatter.</B><B><A HREF="../Formatter.html#locale()">locale</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回构造此 formatter 时设置的语言环境。</TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TH ALIGN="left" COLSPAN="2">参数类型为 <A HREF="../Locale.html" title="java.util 中的类">Locale</A> 的 <A HREF="../package-summary.html">java.util</A> 中的方法</FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../Formatter.html" title="java.util 中的类">Formatter</A></CODE></FONT></TD><TD><CODE><B>Formatter.</B><B><A HREF="../Formatter.html#format(java.util.Locale, java.lang.String, java.lang.Object...)">format</A></B>(<A HREF="../Locale.html" title="java.util 中的类">Locale</A>&nbsp;l,       <A HREF="../../lang/String.html" title="java.lang 中的类">String</A>&nbsp;format,       <A HREF="../../lang/Object.html" title="java.lang 中的类">Object</A>...&nbsp;args)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;使用指定的语言环境、格式字符串和参数,将一个格式化字符串写入此对象的目标文件中。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../ResourceBundle.html" title="java.util 中的类">ResourceBundle</A></CODE></FONT></TD><TD><CODE><B>ResourceBundle.</B><B><A HREF="../ResourceBundle.html#getBundle(java.lang.String, java.util.Locale)">getBundle</A></B>(<A HREF="../../lang/String.html" title="java.lang 中的类">String</A>&nbsp;baseName,          <A HREF="../Locale.html" title="java.util 中的类">Locale</A>&nbsp;locale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;使用指定的基本名称和语言环境,以及调用方的类加载器获取资源包。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../ResourceBundle.html" title="java.util 中的类">ResourceBundle</A></CODE></FONT></TD><TD><CODE><B>ResourceBundle.</B><B><A HREF="../ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)">getBundle</A></B>(<A HREF="../../lang/String.html" title="java.lang 中的类">String</A>&nbsp;baseName,          <A HREF="../Locale.html" title="java.util 中的类">Locale</A>&nbsp;locale,          <A HREF="../../lang/ClassLoader.html" title="java.lang 中的类">ClassLoader</A>&nbsp;loader)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;使用指定的基本名称、语言环境和类加载器获取资源包。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../lang/String.html" title="java.lang 中的类">String</A></CODE></FONT></TD><TD><CODE><B>Locale.</B><B><A HREF="../Locale.html#getDisplayCountry(java.util.Locale)">getDisplayCountry</A></B>(<A HREF="../Locale.html" title="java.util 中的类">Locale</A>&nbsp;inLocale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回适合向用户显示的语言环境国家名。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../lang/String.html" title="java.lang 中的类">String</A></CODE></FONT></TD>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?