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

📄 translatortoolimpl.html

📁 是一个加快Java应用程序国际化和本地化开发的工具集。它将大大减少国际化和本地化开发的所消耗的时间和资源。
💻 HTML
📖 第 1 页 / 共 3 页
字号:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves the result to the output stream.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html#saveOption(java.lang.String, java.lang.String, java.lang.String)">saveOption</A></B>(java.lang.String&nbsp;subject,           java.lang.String&nbsp;variable,           java.lang.String&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves and updates one option.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html#setDictionary(com.sun.tdc.toolkit.api.Dictionary)">setDictionary</A></B>(<A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A>&nbsp;dict)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the dictionary used.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html#setOptions(com.sun.tdc.toolkit.util.IniFile)">setOptions</A></B>(com.sun.tdc.toolkit.util.IniFile&nbsp;options)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the options for translating.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html#setResourceDictionary(com.sun.tdc.toolkit.api.Dictionary)">setResourceDictionary</A></B>(<A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A>&nbsp;resDict)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the resource dictionary used.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html#setSourceFile(java.lang.String)">setSourceFile</A></B>(java.lang.String&nbsp;sourceFile)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the resource file to be translated.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html#setSysDictionary(com.sun.tdc.toolkit.api.Dictionary)">setSysDictionary</A></B>(<A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A>&nbsp;sysDict)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the system dictionary used.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html#setTargetFile(java.lang.String)">setTargetFile</A></B>(java.lang.String&nbsp;targetFile)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the target file to save the translation result.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html#setTransMode(int)">setTransMode</A></B>(int&nbsp;transMode)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html#setUserDictionary(com.sun.tdc.toolkit.api.Dictionary)">setUserDictionary</A></B>(<A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A>&nbsp;userDict)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the user dictionary used.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) &nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html#sweep(java.lang.String)">sweep</A></B>(java.lang.String&nbsp;s)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html#translateAll()">translateAll</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Automatically Translates all values in the resource file.</TD></TR></TABLE>&nbsp;<A NAME="methods_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>Methods 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#getAllUnits()">getAllUnits</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#getBuffer()">getBuffer</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#getTokenItems()">getTokenItems</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#getType()">getType</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#getUnits()">getUnits</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#getUnitWithOffset(int)">getUnitWithOffset</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#insert(int, java.lang.String)">insert</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#isEditable()">isEditable</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#isEditable(int, int)">isEditable</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#isRudeCoded()">isRudeCoded</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#load(java.io.InputStream, int)">load</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#load(java.io.InputStream, int, boolean)">load</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#load(java.lang.String, int)">load</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#load(java.lang.String, int, boolean)">load</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#remove(int, int)">remove</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#setBuffer(java.lang.String)">setBuffer</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#setEditable(boolean)">setEditable</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#setRudeCoded(boolean)">setRudeCoded</A>, <A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#updateUnit(com.sun.tdc.toolkit.resource.ResDocUnit, java.lang.String)">updateUnit</A></CODE></TD></TR></TABLE>&nbsp;<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, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<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="ALL_VALUES"><!-- --></A><H3>ALL_VALUES</H3><PRE>public static final int <B>ALL_VALUES</B></PRE><DL><DD>Translates all the values.</DL><HR><A NAME="TRANSLATABLE_VALUES"><!-- --></A><H3>TRANSLATABLE_VALUES</H3><PRE>public static final int <B>TRANSLATABLE_VALUES</B></PRE><DL><DD>Translates all the values. If found an untranslatable in a value then skip this translating of the value and perform copying.</DL><HR><A NAME="FULLY_TRANSLATABLE_VALUES"><!-- --></A><H3>FULLY_TRANSLATABLE_VALUES</H3><PRE>public static final int <B>FULLY_TRANSLATABLE_VALUES</B></PRE><DL><DD>Translates all the values that can fully match a translation.</DL><HR><A NAME="dict"><!-- --></A><H3>dict</H3><PRE><A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A> <B>dict</B></PRE><DL><DD>By default it is a Super Dictionary that utilizes a resource dictionary, a user dictionary, and a system dictionary.</DL><HR><A NAME="prjItem"><!-- --></A><H3>prjItem</H3><PRE><A HREF="../../../../../com/sun/tdc/toolkit/api/internal/ProjectItem.html">ProjectItem</A> <B>prjItem</B></PRE><DL><DD>The project item being processed.</DL><HR><A NAME="transListener"><!-- --></A><H3>transListener</H3><PRE>java.util.Vector <B>transListener</B></PRE><DL><DD>The translation listener.</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="TranslatorToolImpl()"><!-- --></A><H3>TranslatorToolImpl</H3><PRE>public <B>TranslatorToolImpl</B>()</PRE><DL><DD>Constructor.</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="open(java.io.InputStream, int)"><!-- --></A><H3>open</H3><PRE>public void <B>open</B>(java.io.InputStream&nbsp;in,                 int&nbsp;type)</PRE><DL><DD>Reads Resource file from an input stream and parse it hidely.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../../com/sun/tdc/toolkit/api/TranslatorInterface.html#open(java.io.InputStream, int)">open</A> in interface <A HREF="../../../../../com/sun/tdc/toolkit/api/TranslatorInterface.html">TranslatorInterface</A><DT><B>Parameters:</B><DD><CODE>type:</CODE> - Resource type defined in com.sun.tdc.toolkit.util.Constant.</DL></DD></DL><HR>

⌨️ 快捷键说明

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