📄 translatortoolimpl.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Aug 26 16:16:40 CST 1999 --><TITLE>Java Internationalization and Localization Toolkit public api document: Class TranslatorToolImpl</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="../../../../../overview-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/toolkit/ToolPool.html"><B>PREV CLASS</B></A> <A HREF="../../../../../com/sun/tdc/toolkit/TreeMouseClickListener.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="TranslatorToolImpl.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.toolkit.translator</FONT><BR>Class TranslatorToolImpl</H2><PRE>java.lang.Object | +--<A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html">com.sun.tdc.toolkit.resource.ResourceDocument</A> | +--<B>com.sun.tdc.toolkit.translator.TranslatorToolImpl</B></PRE><HR><DL><DT>public class <B>TranslatorToolImpl</B><DT>extends <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html">ResourceDocument</A><DT>implements <A HREF="../../../../../com/sun/tdc/toolkit/api/TranslatorInterface.html">TranslatorInterface</A></DL><P>This class implements the translator functions.<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>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html#ALL_VALUES">ALL_VALUES</A></B></CODE><BR> Translates all the values.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html#dict">dict</A></B></CODE><BR> By default it is a Super Dictionary that utilizes a resource dictionary, a user dictionary, and a system dictionary.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html#FULLY_TRANSLATABLE_VALUES">FULLY_TRANSLATABLE_VALUES</A></B></CODE><BR> Translates all the values that can fully match a translation.</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/toolkit/translator/TranslatorToolImpl.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>(package private) <A HREF="../../../../../com/sun/tdc/toolkit/api/internal/ProjectItem.html">ProjectItem</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html#prjItem">prjItem</A></B></CODE><BR> The project item being processed.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html#TRANSLATABLE_VALUES">TRANSLATABLE_VALUES</A></B></CODE><BR> Translates all the values.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html#transListener">transListener</A></B></CODE><BR> The translation listener.</TD></TR></TABLE> <A NAME="fields_inherited_from_class_com.sun.tdc.toolkit.resource.ResourceDocument"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor"><TD><B>Fields inherited from class com.sun.tdc.toolkit.resource.<A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html">ResourceDocument</A></B></TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD><CODE><A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#current">current</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#messages">messages</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#rudeCoded">rudeCoded</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#source">source</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#tokenItems">tokenItems</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#type">type</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#units">units</A></CODE></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/toolkit/translator/TranslatorToolImpl.html#TranslatorToolImpl()">TranslatorToolImpl</A></B>()</CODE><BR> Constructor.</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/toolkit/translator/TranslatorToolImpl.html#addTranslationListener(com.sun.tdc.toolkit.translator.TranslationListener)">addTranslationListener</A></B>(com.sun.tdc.toolkit.translator.TranslationListener listener)</CODE><BR> The listener will be notified each translated item during processing.</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/toolkit/translator/TranslatorToolImpl.html#doSubmit(com.sun.tdc.toolkit.resource.ResDocUnit, java.lang.String)">doSubmit</A></B>(com.sun.tdc.toolkit.resource.ResDocUnit unit, java.lang.String value)</CODE><BR> Submits change to the unit with the new value.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html#getDictionary()">getDictionary</A></B>()</CODE><BR> Gets the dictionary used.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> com.sun.tdc.toolkit.util.IniFile</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html#getOptions()">getOptions</A></B>()</CODE><BR> Gets the options for translating.</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/toolkit/translator/TranslatorToolImpl.html#open(java.io.InputStream, int)">open</A></B>(java.io.InputStream in, int type)</CODE><BR> Reads Resource file from an input stream and parse it hidely.</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/toolkit/translator/TranslatorToolImpl.html#process()">process</A></B>()</CODE><BR> Starts the translation.</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/toolkit/translator/TranslatorToolImpl.html#revertAll()">revertAll</A></B>()</CODE><BR> Automatically reverts translation of all vlaues in the resource file.</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/toolkit/translator/TranslatorToolImpl.html#save(java.io.OutputStream)">save</A></B>(java.io.OutputStream os)</CODE><BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -