📄 bbtfdictionary.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#isEmpty()">isEmpty</A></B>()</CODE><BR> Tests if this dictionary maps no keys to meaning.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#isUpdatable()">isUpdatable</A></B>()</CODE><BR> The dictionary allows on-line updating or not.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Enumeration</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#keys()">keys</A></B>()</CODE><BR> Returns an enumeration of the keys in this dictionary.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#lookup(java.lang.String)">lookup</A></B>(java.lang.String key)</CODE><BR> Looks up in the supporting dictionary.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#pack()">pack</A></B>()</CODE><BR> Packs the dictionary - to shrink.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#put(java.lang.String, java.lang.String[])">put</A></B>(java.lang.String key, java.lang.String[] meanings)</CODE><BR> Maps the specified key to the specified meaning in this dictionary.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#refreshCache()">refreshCache</A></B>()</CODE><BR> Refreshes the cache making it synchronized with the physical storage.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#refreshCache(java.lang.String)">refreshCache</A></B>(java.lang.String key)</CODE><BR> Refreshes the key-value in the cache making it synchronized with the physical storage.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#refreshCache(java.lang.String, java.lang.String)">refreshCache</A></B>(java.lang.String key, java.lang.String meaning)</CODE><BR> Refreshes the key in the cache making it synchronized with the physical storage.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#refreshCache(java.lang.String, java.util.Vector)">refreshCache</A></B>(java.lang.String key, java.util.Vector meanings)</CODE><BR> Refreshes the key in the cache making it synchronized with the physical storage.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#remove(java.lang.String)">remove</A></B>(java.lang.String key)</CODE><BR> Removes the key (and its corresponding meanings) from this dictionary.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#remove(java.lang.String, java.lang.String)">remove</A></B>(java.lang.String key, java.lang.String meaning)</CODE><BR> Removes the meaning of the key from this dictionary.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#select(java.lang.String, int)">select</A></B>(java.lang.String key, int index)</CODE><BR> Returns the meaning with the index to all meanings to which the key is mapped.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setCache(java.util.Hashtable)">setCache</A></B>(java.util.Hashtable cache)</CODE><BR> Sets the cache.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setCached(boolean)">setCached</A></B>(boolean cached)</CODE><BR> Enable or disable the cache.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setCacheSize(int)">setCacheSize</A></B>(int size)</CODE><BR> Sets the cache size.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setCaseSensitive(boolean)">setCaseSensitive</A></B>(boolean caseSense)</CODE><BR> Sets case sensitive lookup or not.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setDelimiter(char)">setDelimiter</A></B>(char delimiter)</CODE><BR> Sets the delimiter used to separate each meaning.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setDictionaryInfo(java.util.Properties)">setDictionaryInfo</A></B>(java.util.Properties prop)</CODE><BR> Sub-class can override this method for setting properties for a newly created dictionary.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setLocalesFromFile(java.lang.String)">setLocalesFromFile</A></B>(java.lang.String filename)</CODE><BR> Sets the dictionary's source and target language locale via its filename.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setSource(java.util.Locale)">setSource</A></B>(java.util.Locale locale)</CODE><BR> Sets the source locale.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setTarget(java.util.Locale)">setTarget</A></B>(java.util.Locale locale)</CODE><BR> Sets the target locale.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#setUpdatable(boolean)">setUpdatable</A></B>(boolean updatable)</CODE><BR> The dictionary allows on-line updating or not.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#size()">size</A></B>()</CODE><BR> Returns the number of keys in this dictionary.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#toString()">toString</A></B>()</CODE><BR> 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 java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#trimAsciiString(java.lang.String)">trimAsciiString</A></B>(java.lang.String meaning)</CODE><BR> Returns the string that is meant to have only native chars, eg.</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><HR><A NAME="srcLocale"><!-- --></A><H3>srcLocale</H3><PRE>protected java.util.Locale <B>srcLocale</B></PRE><DL><DD>The source language locale.</DL><HR><A NAME="targetLocale"><!-- --></A><H3>targetLocale</H3><PRE>protected java.util.Locale <B>targetLocale</B></PRE><DL><DD>The target language locale.</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="BbtfDictionary(java.lang.String)"><!-- --></A><H3>BbtfDictionary</H3><PRE>public <B>BbtfDictionary</B>(java.lang.String filename) throws java.lang.IllegalArgumentException</PRE><DL><DD>Constructs a read-only dictionary with caching.<DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -