📄 en2cndictionary.html
字号:
<A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setCacheSize(int)">setCacheSize</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setCaseSensitive(boolean)">setCaseSensitive</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setDelimiter(char)">setDelimiter</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setDictionaryInfo(java.util.Properties)">setDictionaryInfo</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setSource(java.util.Locale)">setSource</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setTarget(java.util.Locale)">setTarget</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setUpdatable(boolean)">setUpdatable</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#size()">size</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD><CODE><clinit>, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" ID="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="messages"><!-- --></A><H3>messages</H3><PRE>static java.util.ResourceBundle <B>messages</B></PRE><DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" ID="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="En2CnDictionary(java.lang.String)"><!-- --></A><H3>En2CnDictionary</H3><PRE>public <B>En2CnDictionary</B>(java.lang.String filename)</PRE><DL><DD>Constructs a read-only dictionary with caching.<DD><DL><DT><B>Parameters:</B><DD><CODE>filename</CODE> - The balance binary tree file that stores the dictionary.<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - if the file is somehow invalid.</DL></DD></DL><HR><A NAME="En2CnDictionary(java.lang.String, boolean)"><!-- --></A><H3>En2CnDictionary</H3><PRE>public <B>En2CnDictionary</B>(java.lang.String filename, boolean updatable)</PRE><DL><DD>Constructs a dictionary with caching.<DD><DL><DT><B>Parameters:</B><DD><CODE>filename</CODE> - The balance binary tree file that stores the dictionary.<DD><CODE>updatable</CODE> - true specifies the dictionary can be on-line updated.<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - if the file is somehow invalid.</DL></DD></DL><HR><A NAME="En2CnDictionary(java.lang.String, boolean, boolean, java.util.Properties)"><!-- --></A><H3>En2CnDictionary</H3><PRE>public <B>En2CnDictionary</B>(java.lang.String filename, boolean cached, boolean updatable, java.util.Properties prop)</PRE><DL><DD>Constructs a dictionary specifying caching or not, read-only or not.<DD><DL><DT><B>Parameters:</B><DD><CODE>filename</CODE> - The balance binary tree file that stores the dictionary.<DD><CODE>cached</CODE> - true if use caching.<DD><CODE>updatable</CODE> - true specifies the dictionary can be on-line updated.<DD><CODE>prop</CODE> - if this dictionary has not been created, use prop to specify its properties when creating; if it exists, then ignore prop.<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - if the file is somehow invalid.</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" ID="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getSource()"><!-- --></A><H3>getSource</H3><PRE>public java.util.Locale <B>getSource</B>()</PRE><DL><DD>Gets the source locale which is Locale.ENGLISH.<DD><DL><DT><B>Returns:</B><DD>the source language will be translated from.<DT><B>Overrides:</B><DD><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#getSource()">getSource</A> in class <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html">BbtfDictionary</A></DL></DD></DL><HR><A NAME="getTarget()"><!-- --></A><H3>getTarget</H3><PRE>public java.util.Locale <B>getTarget</B>()</PRE><DL><DD>Gets the target locale which is Locale.PRC .<DD><DL><DT><B>Returns:</B><DD>the target language will be translated to.<DT><B>Overrides:</B><DD><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#getTarget()">getTarget</A> in class <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html">BbtfDictionary</A></DL></DD></DL><HR><A NAME="setLocalesFromFile(java.lang.String)"><!-- --></A><H3>setLocalesFromFile</H3><PRE>protected void <B>setLocalesFromFile</B>(java.lang.String filename) throws java.lang.IllegalArgumentException</PRE><DL><DD>Sets the dictionary's source and target language locales via its filename.<DD><DL><DT><B>Overrides:</B><DD><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setLocalesFromFile(java.lang.String)">setLocalesFromFile</A> in class <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html">BbtfDictionary</A></DL></DD></DL><HR><A NAME="trimAsciiString(java.lang.String)"><!-- --></A><H3>trimAsciiString</H3><PRE>protected java.lang.String <B>trimAsciiString</B>(java.lang.String str)</PRE><DL><DD>Returns the string that is meant to have only native chars, eg. ';', '=', etc. will be removed from the meaning str if there is. This method is used for backward compatible for this class.<DD><DL><DT><B>Parameters:</B><DD><CODE>meaning</CODE> - the meaning string.<DT><B>Overrides:</B><DD><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#trimAsciiString(java.lang.String)">trimAsciiString</A> in class <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html">BbtfDictionary</A></DL></DD></DL><HR><A NAME="getDictionaryInfo()"><!-- --></A><H3>getDictionaryInfo</H3><PRE>public java.util.Properties <B>getDictionaryInfo</B>()</PRE><DL><DD>Gets the dictionary's information, eg. description, etc.. May take some time to finish.<DD><DL><DT><B>Returns:</B><DD>null if no properties can be found.<DT><B>Overrides:</B><DD><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#getDictionaryInfo()">getDictionaryInfo</A> in class <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html">BbtfDictionary</A></DL></DD></DL><HR><A NAME="getName()"><!-- --></A><H3>getName</H3><PRE>public java.lang.String <B>getName</B>()</PRE><DL><DD>Gets the dictionary name - "Resource Dictionary" by default.<DD><DL><DT><B>Overrides:</B><DD><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#getName()">getName</A> in class <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html">BbtfDictionary</A></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Overriden should normally returns the dictionary's name.<DD><DL><DT><B>Returns:</B><DD>the name of the dictionary - "English-Chinese Dictionary".<DT><B>Overrides:</B><DD><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#toString()">toString</A> in class <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html">BbtfDictionary</A></DL></DD></DL><HR><A NAME="isAlphabet(char)"><!-- --></A><H3>isAlphabet</H3><PRE>protected boolean <B>isAlphabet</B>(char c)</PRE><DL><DD>Returns true if c is an alphabet. This method is for backward compatible and mainly by this class.</DL><HR><A NAME="get(java.lang.String)"><!-- --></A><H3>get</H3><PRE>public java.lang.String[] <B>get</B>(java.lang.String key)</PRE><DL><DD>Looks up in the dictionary. Returns the meanings to which the key is mapped in this dictionary.<DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - any string.<DT><B>Returns:</B><DD>null if not found.<DT><B>Overrides:</B><DD><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#get(java.lang.String)">get</A> in class <A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html">BbtfDictionary</A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1"><A NAME="navbar_bottom_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> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> <FONT ID="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../com/sun/tdc/util/dictionary/DictPackageResource_zh.html"><B>PREV CLASS</B></A> <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> <A HREF="En2CnDictionary.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -