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

📄 rtfdocument.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html#add(com.lowagie.text.rtf.RtfBasicElement)">add</A></B>(<A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html" title="interface in com.lowagie.text.rtf">RtfBasicElement</A>&nbsp;element)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds an element to the rtf document</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html#filterSpecialChar(java.io.OutputStream, java.lang.String, boolean, boolean)">filterSpecialChar</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;out,                  <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;str,                  boolean&nbsp;useHex,                  boolean&nbsp;softLineBreaks)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the given string to the given <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io"><CODE>OutputStream</CODE></A> encoding the string characters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html#getAutogenerateTOCEntries()">getAutogenerateTOCEntries</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get whether to automatically generate table of contents entries</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocumentHeader.html" title="class in com.lowagie.text.rtf.document">RtfDocumentHeader</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html#getDocumentHeader()">getDocumentHeader</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the RtfDocumentHeader of this RtfDocument</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocumentSettings.html" title="class in com.lowagie.text.rtf.document">RtfDocumentSettings</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html#getDocumentSettings()">getDocumentSettings</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the RtfDocumentSettings that specify how the rtf document is generated.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html" title="interface in com.lowagie.text.rtf">RtfBasicElement</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html#getLastElementWritten()">getLastElementWritten</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the last RtfBasicElement that was directly added to the RtfDocument.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../com/lowagie/text/rtf/RtfMapper.html" title="class in com.lowagie.text.rtf">RtfMapper</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html#getMapper()">getMapper</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the RtfMapper object of this RtfDocument</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html#getRandomInt()">getRandomInt</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generates a random integer that is unique with respect to the document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html#open()">open</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens the RtfDocument and initializes the data cache.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html#setAutogenerateTOCEntries(boolean)">setAutogenerateTOCEntries</A></B>(boolean&nbsp;autogenerate)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Whether to automagically generate table of contents entries when adding Chapters or Sections.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html#subMatch(java.lang.String, int, byte[])">subMatch</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;str,         int&nbsp;soff,         byte[]&nbsp;m)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>true</code> if <tt>m.length</tt> characters in <tt>str</tt>, starting at offset <tt>soff</tt> match the bytes in the given array <tt>m</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html#writeContent(java.io.OutputStream)">writeContent</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;out)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unused</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html#writeDocument(java.io.OutputStream)">writeDocument</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;out)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the document</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_com.lowagie.text.rtf.RtfElement"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class com.lowagie.text.rtf.<A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html" title="class in com.lowagie.text.rtf">RtfElement</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html#intToByteArray(int)">intToByteArray</A>, <A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html#isInTable()">isInTable</A>, <A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html#setInHeader(boolean)">setInHeader</A>, <A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html#setInTable(boolean)">setInTable</A>, <A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html#setRtfDocument(com.lowagie.text.rtf.document.RtfDocument)">setRtfDocument</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="data"><!-- --></A><H3>data</H3><PRE>private <A HREF="../../../../../com/lowagie/text/rtf/document/output/RtfDataCache.html" title="interface in com.lowagie.text.rtf.document.output">RtfDataCache</A> <B>data</B></PRE><DL><DD>Stores the actual document data<P><DL></DL></DL><HR><A NAME="mapper"><!-- --></A><H3>mapper</H3><PRE>private <A HREF="../../../../../com/lowagie/text/rtf/RtfMapper.html" title="class in com.lowagie.text.rtf">RtfMapper</A> <B>mapper</B></PRE><DL><DD>The RtfMapper to use in this RtfDocument<P><DL></DL></DL><HR><A NAME="documentHeader"><!-- --></A><H3>documentHeader</H3><PRE>private <A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocumentHeader.html" title="class in com.lowagie.text.rtf.document">RtfDocumentHeader</A> <B>documentHeader</B></PRE><DL><DD>The RtfDocumentHeader that handles all document header methods<P><DL></DL></DL><HR><A NAME="previousRandomInts"><!-- --></A><H3>previousRandomInts</H3><PRE>private <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A> <B>previousRandomInts</B></PRE><DL><DD>Stores integers that have been generated as unique random numbers<P><DL></DL></DL><HR><A NAME="autogenerateTOCEntries"><!-- --></A><H3>autogenerateTOCEntries</H3><PRE>private boolean <B>autogenerateTOCEntries</B></PRE><DL><DD>Whether to automatically generate TOC entries for Chapters and Sections. Defaults to false<P><DL></DL></DL><HR><A NAME="documentSettings"><!-- --></A><H3>documentSettings</H3><PRE>private <A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocumentSettings.html" title="class in com.lowagie.text.rtf.document">RtfDocumentSettings</A> <B>documentSettings</B></PRE><DL><DD>The RtfDocumentSettings for this RtfDocument.<P><DL></DL></DL><HR><A NAME="lastElementWritten"><!-- --></A><H3>lastElementWritten</H3><PRE>private <A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html" title="interface in com.lowagie.text.rtf">RtfBasicElement</A> <B>lastElementWritten</B></PRE><DL><DD>The last RtfBasicElement that was added directly to the RtfDocument.<P><DL></DL></DL><HR><A NAME="RTF_DOCUMENT"><!-- --></A><H3>RTF_DOCUMENT</H3><PRE>private static final byte[] <B>RTF_DOCUMENT</B></PRE><DL><DD>Constant for the Rtf document start<P><DL></DL></DL><HR><A NAME="FSC_LINE"><!-- --></A><H3>FSC_LINE</H3><PRE>private static final byte[] <B>FSC_LINE</B></PRE><DL><DL></DL></DL><HR><A NAME="FSC_PAR"><!-- --></A><H3>FSC_PAR</H3><PRE>private static final byte[] <B>FSC_PAR</B></PRE><DL><DL></DL></DL><HR><A NAME="FSC_TAB"><!-- --></A><H3>FSC_TAB</H3><PRE>private static final byte[] <B>FSC_TAB</B></PRE><DL><DL></DL></DL><HR><A NAME="FSC_PAGE_PAR"><!-- --></A><H3>FSC_PAGE_PAR</H3><PRE>private static final byte[] <B>FSC_PAGE_PAR</B></PRE><DL><DL></DL></DL><HR><A NAME="FSC_NEWPAGE"><!-- --></A><H3>FSC_NEWPAGE</H3><PRE>private static final byte[] <B>FSC_NEWPAGE</B></PRE><DL><DL></DL></DL><HR><A NAME="FSC_BACKSLASH"><!-- --></A><H3>FSC_BACKSLASH</H3><PRE>private static final byte[] <B>FSC_BACKSLASH</B></PRE><DL><DL></DL></DL><HR><A NAME="FSC_HEX_PREFIX"><!-- --></A><H3>FSC_HEX_PREFIX</H3><PRE>

⌨️ 快捷键说明

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