📄 rtfwriter2.html
字号:
<BR> Static method to generate RtfWriters</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/rtf/RtfWriter2.html#importRtfDocument(java.io.FileInputStream)">importRtfDocument</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/FileInputStream.html?is-external=true" title="class or interface in java.io">FileInputStream</A> documentSource)</CODE><BR> Adds the complete RTF document to the current RTF document being generated.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/rtf/RtfWriter2.html#importRtfDocument(java.io.InputStream, java.util.EventListener[])">importRtfDocument</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> documentSource, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/EventListener.html?is-external=true" title="class or interface in java.util">EventListener</A>[] events)</CODE><BR> Adds the complete RTF document to the current RTF document being generated.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/rtf/RtfWriter2.html#importRtfFragment(java.io.InputStream, com.lowagie.text.rtf.parser.RtfImportMappings)">importRtfFragment</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> documentSource, <A HREF="../../../../com/lowagie/text/rtf/parser/RtfImportMappings.html" title="class in com.lowagie.text.rtf.parser">RtfImportMappings</A> mappings)</CODE><BR> Adds a fragment of an RTF document to the current RTF document being generated.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/rtf/RtfWriter2.html#importRtfFragment(java.io.InputStream, com.lowagie.text.rtf.parser.RtfImportMappings, java.util.EventListener[])">importRtfFragment</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> documentSource, <A HREF="../../../../com/lowagie/text/rtf/parser/RtfImportMappings.html" title="class in com.lowagie.text.rtf.parser">RtfImportMappings</A> mappings, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/EventListener.html?is-external=true" title="class or interface in java.util">EventListener</A>[] events)</CODE><BR> Adds a fragment of an RTF document to the current RTF document being generated.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/rtf/RtfWriter2.html#newPage()">newPage</A></B>()</CODE><BR> Adds a page break</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/rtf/RtfWriter2.html#open()">open</A></B>()</CODE><BR> Opens the RtfDocument</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/rtf/RtfWriter2.html#resetFooter()">resetFooter</A></B>()</CODE><BR> Resets the footer</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/rtf/RtfWriter2.html#resetHeader()">resetHeader</A></B>()</CODE><BR> Resets the header</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/rtf/RtfWriter2.html#resetPageCount()">resetPageCount</A></B>()</CODE><BR> This method is not supported in the RtfWriter</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/rtf/RtfWriter2.html#setAutogenerateTOCEntries(boolean)">setAutogenerateTOCEntries</A></B>(boolean autogenerate)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/rtf/RtfWriter2.html#setFooter(com.lowagie.text.HeaderFooter)">setFooter</A></B>(<A HREF="../../../../com/lowagie/text/HeaderFooter.html" title="class in com.lowagie.text">HeaderFooter</A> hf)</CODE><BR> Sets the footer to use</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/rtf/RtfWriter2.html#setHeader(com.lowagie.text.HeaderFooter)">setHeader</A></B>(<A HREF="../../../../com/lowagie/text/HeaderFooter.html" title="class in com.lowagie.text">HeaderFooter</A> hf)</CODE><BR> Sets the header to use</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/rtf/RtfWriter2.html#setMargins(float, float, float, float)">setMargins</A></B>(float left, float right, float top, float bottom)</CODE><BR> Sets the page margins</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/rtf/RtfWriter2.html#setPageCount(int)">setPageCount</A></B>(int i)</CODE><BR> This method is not supported in the RtfWriter</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/rtf/RtfWriter2.html#setPageSize(com.lowagie.text.Rectangle)">setPageSize</A></B>(<A HREF="../../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A> rect)</CODE><BR> Sets the size of the page</TD></TR></TABLE> <A NAME="methods_inherited_from_class_com.lowagie.text.DocWriter"><!-- --></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.<A HREF="../../../../com/lowagie/text/DocWriter.html" title="class in com.lowagie.text">DocWriter</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../com/lowagie/text/DocWriter.html#addTabs(int)">addTabs</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#flush()">flush</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#getISOBytes(java.lang.String)">getISOBytes</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#isCloseStream()">isCloseStream</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#isPaused()">isPaused</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#pause()">pause</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#resume()">resume</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#setCloseStream(boolean)">setCloseStream</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#setMarginMirroring(boolean)">setMarginMirroring</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#write(java.lang.String)">write</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#write(java.lang.String, java.lang.String)">write</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#writeEnd()">writeEnd</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#writeEnd(java.lang.String)">writeEnd</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#writeMarkupAttributes(java.util.Properties)">writeMarkupAttributes</A>, <A HREF="../../../../com/lowagie/text/DocWriter.html#writeStart(java.lang.String)">writeStart</A></CODE></TD></TR></TABLE> <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> <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="rtfDoc"><!-- --></A><H3>rtfDoc</H3><PRE>private <A HREF="../../../../com/lowagie/text/rtf/document/RtfDocument.html" title="class in com.lowagie.text.rtf.document">RtfDocument</A> <B>rtfDoc</B></PRE><DL><DD>The RtfDocument this RtfWriter is creating<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="RtfWriter2(com.lowagie.text.Document, java.io.OutputStream)"><!-- --></A><H3>RtfWriter2</H3><PRE>protected <B>RtfWriter2</B>(<A HREF="../../../../com/lowagie/text/Document.html" title="class in com.lowagie.text">Document</A> doc, <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> os)</PRE><DL><DD>Constructs a new RtfWriter that listens to the specified Document and writes its output to the OutputStream.<P><DL><DT><B>Parameters:</B><DD><CODE>doc</CODE> - The Document that this RtfWriter listens to<DD><CODE>os</CODE> - The OutputStream to write to</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_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>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getInstance(com.lowagie.text.Document, java.io.OutputStream)"><!-- --></A><H3>getInstance</H3><PRE>public static <A HREF="../../../../com/lowagie/text/rtf/RtfWriter2.html" title="class in com.lowagie.text.rtf">RtfWriter2</A> <B>getInstance</B>(<A HREF="../../../../com/lowagie/text/Document.html" title="class in com.lowagie.text">Document</A> doc, <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> os)</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -