📄 resourcedocument.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Aug 26 16:16:38 CST 1999 --><TITLE>Java Internationalization and Localization Toolkit public api document: Class ResourceDocument</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/messagetool/PeerUnitMapping.html"><B>PREV CLASS</B></A> <A HREF="../../../../../com/sun/tdc/toolkit/resourcetool/ResourceToolImpl.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="ResourceDocument.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.resource</FONT><BR>Class ResourceDocument</H2><PRE>java.lang.Object | +--<B>com.sun.tdc.toolkit.resource.ResourceDocument</B></PRE><DL><DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../com/sun/tdc/toolkit/resourcetool/ResourceToolImpl.html">ResourceToolImpl</A>, <A HREF="../../../../../com/sun/tdc/toolkit/translator/TranslatorToolImpl.html">TranslatorToolImpl</A></DD></DL><HR><DL><DT>public class <B>ResourceDocument</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../com/sun/tdc/toolkit/api/internal/ToolkitData.html">ToolkitData</A>, <A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Constant.html">Constant</A></DL><P>Provide accessibility of them common resource.<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) int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#current">current</A></B></CODE><BR> </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/resource/ResourceDocument.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 boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#rudeCoded">rudeCoded</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) com.sun.tdc.toolkit.resource.ResourceDataInterface</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#source">source</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/TokenItem.html">TokenItem</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#tokenItems">tokenItems</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#type">type</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) com.sun.tdc.toolkit.resource.ResDocUnit[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#units">units</A></B></CODE><BR> </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/resource/ResourceDocument.html#ResourceDocument()">ResourceDocument</A></B>()</CODE><BR> Constructor.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#ResourceDocument(com.sun.tdc.toolkit.resource.AbstractResource, boolean)">ResourceDocument</A></B>(com.sun.tdc.toolkit.resource.AbstractResource resource, boolean rude)</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> <A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#getAllUnits()">getAllUnits</A></B>()</CODE><BR> Get all concerned Units.</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/toolkit/resource/ResourceDocument.html#getBuffer()">getBuffer</A></B>()</CODE><BR> get the data buffer.</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/internal/TokenItem.html">TokenItem</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#getTokenItems()">getTokenItems</A></B>()</CODE><BR> get the array which holds token items, a token item can specify which portion of the text belongs to which token type.</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/toolkit/resource/ResourceDocument.html#getType()">getType</A></B>()</CODE><BR> get resource type.</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/internal/Unit.html">Unit</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#getUnits()">getUnits</A></B>()</CODE><BR> Get (only VALUE-flag) concerned Units.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> com.sun.tdc.toolkit.resource.ResDocUnit</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#getUnitWithOffset(int)">getUnitWithOffset</A></B>(int offset)</CODE><BR> get a unit which contains the text on the offset position</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/resource/ResourceDocument.html#insert(int, java.lang.String)">insert</A></B>(int where, java.lang.String str)</CODE><BR> insert a string of characters has been inserted.</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/resource/ResourceDocument.html#isEditable()">isEditable</A></B>()</CODE><BR> If the whole document is editable 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/toolkit/resource/ResourceDocument.html#isEditable(int, int)">isEditable</A></B>(int where, int len)</CODE><BR> judge if a portion of the buffer is editable</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/resource/ResourceDocument.html#isRudeCoded()">isRudeCoded</A></B>()</CODE><BR> If the key-value pair are rude coded.</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/resource/ResourceDocument.html#load(java.io.InputStream, int)">load</A></B>(java.io.InputStream in, int type)</CODE><BR> Load contents.</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/resource/ResourceDocument.html#load(java.io.InputStream, int, boolean)">load</A></B>(java.io.InputStream in, int type, boolean rude)</CODE><BR> Load contents.</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/resource/ResourceDocument.html#load(java.lang.String, int)">load</A></B>(java.lang.String fileName, int type)</CODE><BR> Load contents.</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/resource/ResourceDocument.html#load(java.lang.String, int, boolean)">load</A></B>(java.lang.String fileName, int type, boolean rude)</CODE><BR> </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/resource/ResourceDocument.html#remove(int, int)">remove</A></B>(int where, int nitems)</CODE><BR> remove some portion of the sequence has been removed.</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/resource/ResourceDocument.html#setBuffer(java.lang.String)">setBuffer</A></B>(java.lang.String buf)</CODE><BR> set the data buffer.</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/resource/ResourceDocument.html#setEditable(boolean)">setEditable</A></B>(boolean set)</CODE><BR> </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/resource/ResourceDocument.html#setRudeCoded(boolean)">setRudeCoded</A></B>(boolean set)</CODE><BR> Set rude coded view or not.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> com.sun.tdc.toolkit.resource.ResDocUnit</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/resource/ResourceDocument.html#updateUnit(com.sun.tdc.toolkit.resource.ResDocUnit, java.lang.String)">updateUnit</A></B>(com.sun.tdc.toolkit.resource.ResDocUnit unit, java.lang.String str)</CODE><BR> Update ResDocUnit with String.</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, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -