⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 en2cndictionary.html

📁 是一个加快Java应用程序国际化和本地化开发的工具集。它将大大减少国际化和本地化开发的所消耗的时间和资源。
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Aug 26 16:16:46 CST 1999 --><TITLE>Java Internationalization and Localization Toolkit public api document: Class  En2CnDictionary</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../../com/sun/tdc/util/dictionary/DictPackageResource_zh.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../com/sun/tdc/util/dictionary/ResourceDictionary.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="En2CnDictionary.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">com.sun.tdc.util.dictionary</FONT><BR>Class  En2CnDictionary</H2><PRE>java.lang.Object  |  +--<A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html">com.sun.tdc.util.dictionary.BbtfDictionary</A>        |        +--<B>com.sun.tdc.util.dictionary.En2CnDictionary</B></PRE><HR><DL><DT>public class <B>En2CnDictionary</B><DT>extends <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html">BbtfDictionary</A></DL><P>This class implements an english to chinese dictionary. It is based upon the balanced binary tree file implementation of dictionary.<P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" ID="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) static&nbsp;java.util.ResourceBundle</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/En2CnDictionary.html#messages">messages</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR></TABLE>&nbsp;<A NAME="fields_inherited_from_class_com.sun.tdc.util.dictionary.BbtfDictionary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor"><TD><B>Fields inherited from class com.sun.tdc.util.dictionary.<A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html">BbtfDictionary</A></B></TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD><CODE><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#messages">messages</A>,  <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#srcLocale">srcLocale</A>,  <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#targetLocale">targetLocale</A></CODE></TD></TR></TABLE>&nbsp;<!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" ID="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/En2CnDictionary.html#En2CnDictionary(java.lang.String)">En2CnDictionary</A></B>(java.lang.String&nbsp;filename)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a read-only dictionary with caching.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/En2CnDictionary.html#En2CnDictionary(java.lang.String, boolean)">En2CnDictionary</A></B>(java.lang.String&nbsp;filename,                boolean&nbsp;updatable)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a dictionary with caching.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/En2CnDictionary.html#En2CnDictionary(java.lang.String, boolean, boolean, java.util.Properties)">En2CnDictionary</A></B>(java.lang.String&nbsp;filename,                boolean&nbsp;cached,                boolean&nbsp;updatable,                java.util.Properties&nbsp;prop)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a dictionary specifying caching or not, read-only or not.</TD></TR></TABLE>&nbsp;<!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" ID="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/En2CnDictionary.html#get(java.lang.String)">get</A></B>(java.lang.String&nbsp;key)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Looks up in the dictionary.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.util.Properties</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/En2CnDictionary.html#getDictionaryInfo()">getDictionaryInfo</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the dictionary's information, eg.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/En2CnDictionary.html#getName()">getName</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the dictionary name - "Resource Dictionary" by default.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.util.Locale</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/En2CnDictionary.html#getSource()">getSource</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the source locale which is Locale.ENGLISH.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.util.Locale</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/En2CnDictionary.html#getTarget()">getTarget</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the target locale which is Locale.PRC .</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/En2CnDictionary.html#isAlphabet(char)">isAlphabet</A></B>(char&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if c is an alphabet.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/En2CnDictionary.html#setLocalesFromFile(java.lang.String)">setLocalesFromFile</A></B>(java.lang.String&nbsp;filename)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the dictionary's source and target language locales via its filename.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/En2CnDictionary.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Overriden should normally returns the dictionary's name.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/En2CnDictionary.html#trimAsciiString(java.lang.String)">trimAsciiString</A></B>(java.lang.String&nbsp;str)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the string that is meant to have only native chars, eg.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_com.sun.tdc.util.dictionary.BbtfDictionary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor"><TD><B>Methods inherited from class com.sun.tdc.util.dictionary.<A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html">BbtfDictionary</A></B></TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD><CODE><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#abortPack()">abortPack</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#append(java.lang.String, java.lang.String)">append</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#elements()">elements</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#getCache()">getCache</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#getCacheSize()">getCacheSize</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#getDelimiter()">getDelimiter</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#getFile()">getFile</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#getMeaningCount(java.lang.String)">getMeaningCount</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#getTempFile()">getTempFile</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#isCached()">isCached</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#isCaseSensitive()">isCaseSensitive</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#isEmpty()">isEmpty</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#isUpdatable()">isUpdatable</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#keys()">keys</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#lookup(java.lang.String)">lookup</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#pack()">pack</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#put(java.lang.String, java.lang.String[])">put</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#refreshCache()">refreshCache</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#refreshCache(java.lang.String)">refreshCache</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#refreshCache(java.lang.String, java.lang.String)">refreshCache</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#refreshCache(java.lang.String, java.util.Vector)">refreshCache</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#remove(java.lang.String)">remove</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#remove(java.lang.String, java.lang.String)">remove</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#select(java.lang.String, int)">select</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setCache(java.util.Hashtable)">setCache</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setCached(boolean)">setCached</A>, 

⌨️ 快捷键说明

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