📄 bbtfdictionary.html
字号:
<!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 BbtfDictionary</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> </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"> PREV CLASS <A HREF="../../../../../com/sun/tdc/util/dictionary/DictPackageResource.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="BbtfDictionary.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><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">com.sun.tdc.util.dictionary</FONT><BR>Class BbtfDictionary</H2><PRE>java.lang.Object | +--<B>com.sun.tdc.util.dictionary.BbtfDictionary</B></PRE><DL><DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../com/sun/tdc/util/dictionary/En2CnDictionary.html">En2CnDictionary</A>, <A HREF="../../../../../com/sun/tdc/util/dictionary/UserDictionary.html">UserDictionary</A></DD></DL><HR><DL><DT>public class <B>BbtfDictionary</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A>, <A HREF="../../../../../com/sun/tdc/toolkit/api/DictionaryCachable.html">DictionaryCachable</A></DL><P>This class implements a dictionary. Such a dictionary contains key-meaning pairs and can be looked up using this class. This is based upon the balanced binary tree data file implementation.<p>Such dictionaries can have their cache to speed up looking up and all share one cache.<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 java.util.ResourceBundle</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#messages">messages</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.util.Locale</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#srcLocale">srcLocale</A></B></CODE><BR> The source language locale.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.util.Locale</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#targetLocale">targetLocale</A></B></CODE><BR> The target language locale.</TD></TR></TABLE> <!-- ======== 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/BbtfDictionary.html#BbtfDictionary(java.lang.String)">BbtfDictionary</A></B>(java.lang.String filename)</CODE><BR> Constructs a read-only dictionary with caching.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#BbtfDictionary(java.lang.String, boolean)">BbtfDictionary</A></B>(java.lang.String filename, boolean updatable)</CODE><BR> Constructs a dictionary with caching.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#BbtfDictionary(java.lang.String, boolean, boolean, java.util.Properties)">BbtfDictionary</A></B>(java.lang.String filename, boolean cached, boolean updatable, java.util.Properties prop)</CODE><BR> Constructs a dictionary specifying caching or not, read-only or not.</TD></TR></TABLE> <!-- ========== 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#abortPack()">abortPack</A></B>()</CODE><BR> Stops the pack.</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#append(java.lang.String, java.lang.String)">append</A></B>(java.lang.String key, java.lang.String meaning)</CODE><BR> Append 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> java.util.Enumeration</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#elements()">elements</A></B>()</CODE><BR> Returns an enumeration of the meanings 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#get(java.lang.String)">get</A></B>(java.lang.String key)</CODE><BR> Looks up in the dictionary.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Hashtable</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#getCache()">getCache</A></B>()</CODE><BR> Gets the cache.</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#getCacheSize()">getCacheSize</A></B>()</CODE><BR> Gets the cache size.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> char</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#getDelimiter()">getDelimiter</A></B>()</CODE><BR> Gets 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> java.util.Properties</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#getDictionaryInfo()">getDictionaryInfo</A></B>()</CODE><BR> Gets the dictionary's information, eg.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.io.File</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#getFile()">getFile</A></B>()</CODE><BR> Gets the dictionary file.</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#getMeaningCount(java.lang.String)">getMeaningCount</A></B>(java.lang.String key)</CODE><BR> Returns the number of 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> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#getName()">getName</A></B>()</CODE><BR> Gets the dictionary name.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Locale</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#getSource()">getSource</A></B>()</CODE><BR> Get source locale.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Locale</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#getTarget()">getTarget</A></B>()</CODE><BR> Get target locale.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.io.File</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/util/dictionary/BbtfDictionary.html#getTempFile()">getTempFile</A></B>()</CODE><BR> Gets the temp file for packing.</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#isCached()">isCached</A></B>()</CODE><BR> Uses cache or not.</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#isCaseSensitive()">isCaseSensitive</A></B>()</CODE><BR> Case sensitive lookup or not.</TD></TR><TR BGCOLOR="white" ID="TableRowColor">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -