📄 docwriter.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/lowagie/text/DocWriter.html#isCloseStream()">isCloseStream</A></B>()</CODE>
<BR>
Checks if the stream is to be closed on document close</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/DocWriter.html#newPage()">newPage</A></B>()</CODE>
<BR>
Signals that an new page has to be started. </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/DocWriter.html#open()">open</A></B>()</CODE>
<BR>
Signals that the <CODE>Document</CODE> was opened.</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/DocWriter.html#pause()">pause</A></B>()</CODE>
<BR>
Let the writer know that all writing has to be paused.</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/DocWriter.html#removeWatermark()">removeWatermark</A></B>()</CODE>
<BR>
Removes the <CODE>Watermark</CODE> (if there is one).</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/DocWriter.html#resetFooter()">resetFooter</A></B>()</CODE>
<BR>
Resets the footer of this document. </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/DocWriter.html#resetHeader()">resetHeader</A></B>()</CODE>
<BR>
Resets the header of this document. </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/DocWriter.html#resetPageCount()">resetPageCount</A></B>()</CODE>
<BR>
Sets the page number to 0. </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/DocWriter.html#resume()">resume</A></B>()</CODE>
<BR>
Let the writer know that writing may be resumed.</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/DocWriter.html#setCloseStream(boolean)">setCloseStream</A></B>(boolean closeStream)</CODE>
<BR>
Sets the close state of the stream after document close</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/DocWriter.html#setFooter(com.lowagie.text.HeaderFooter)">setFooter</A></B>(<A HREF="../../../com/lowagie/text/HeaderFooter.html">HeaderFooter</A> footer)</CODE>
<BR>
Changes the footer of this document. </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/DocWriter.html#setHeader(com.lowagie.text.HeaderFooter)">setHeader</A></B>(<A HREF="../../../com/lowagie/text/HeaderFooter.html">HeaderFooter</A> header)</CODE>
<BR>
Changes the header of this document. </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/DocWriter.html#setMargins(float, float, float, float)">setMargins</A></B>(float marginLeft, float marginRight, float marginTop, float marginBottom)</CODE>
<BR>
Sets the 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/DocWriter.html#setPageCount(int)">setPageCount</A></B>(int pageN)</CODE>
<BR>
Sets the page number. </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/DocWriter.html#setPageSize(com.lowagie.text.Rectangle)">setPageSize</A></B>(<A HREF="../../../com/lowagie/text/Rectangle.html">Rectangle</A> pageSize)</CODE>
<BR>
Sets the pagesize.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/lowagie/text/DocWriter.html#write(java.lang.String)">write</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> string)</CODE>
<BR>
Writes a <CODE>String</CODE> to the <CODE>OutputStream</CODE>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/lowagie/text/DocWriter.html#write(java.lang.String, java.lang.String)">write</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> key, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> value)</CODE>
<BR>
Writes a key-value pair to the outputstream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/lowagie/text/DocWriter.html#writeEnd()">writeEnd</A></B>()</CODE>
<BR>
Writes an endtag to the outputstream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/lowagie/text/DocWriter.html#writeEnd(java.lang.String)">writeEnd</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> tag)</CODE>
<BR>
Writes an endtag to the outputstream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/lowagie/text/DocWriter.html#writeMarkupAttributes(com.lowagie.text.MarkupAttributes)">writeMarkupAttributes</A></B>(<A HREF="../../../com/lowagie/text/MarkupAttributes.html">MarkupAttributes</A> mAtt)</CODE>
<BR>
Writes the markup attributes of the specified <CODE>MarkupAttributes</CODE> object to the <CODE>OutputStream</CODE>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/lowagie/text/DocWriter.html#writeStart(java.lang.String)">writeStart</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> tag)</CODE>
<BR>
Writes a starttag to the outputstream.</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" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#clone()">clone</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#toString()">toString</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="NEWLINE"><!-- --></A><H3>
NEWLINE</H3>
<PRE>
public static final byte <B>NEWLINE</B></PRE>
<DL>
<DD>This is some byte that is often used.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.DocWriter.NEWLINE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="TAB"><!-- --></A><H3>
TAB</H3>
<PRE>
public static final byte <B>TAB</B></PRE>
<DL>
<DD>This is some byte that is often used.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.DocWriter.TAB">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="LT"><!-- --></A><H3>
LT</H3>
<PRE>
public static final byte <B>LT</B></PRE>
<DL>
<DD>This is some byte that is often used.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.DocWriter.LT">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="SPACE"><!-- --></A><H3>
SPACE</H3>
<PRE>
public static final byte <B>SPACE</B></PRE>
<DL>
<DD>This is some byte that is often used.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.DocWriter.SPACE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="EQUALS"><!-- --></A><H3>
EQUALS</H3>
<PRE>
public static final byte <B>EQUALS</B></PRE>
<DL>
<DD>This is some byte that is often used.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.DocWriter.EQUALS">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="QUOTE"><!-- --></A><H3>
QUOTE</H3>
<PRE>
public static final byte <B>QUOTE</B></PRE>
<DL>
<DD>This is some byte that is often used.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.DocWriter.QUOTE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="GT"><!-- --></A><H3>
GT</H3>
<PRE>
public static final byte <B>GT</B></PRE>
<DL>
<DD>This is some byte that is often used.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.DocWriter.GT">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="FORWARD"><!-- --></A><H3>
FORWARD</H3>
<PRE>
public static final byte <B>FORWARD</B></PRE>
<DL>
<DD>This is some byte that is often used.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.text.DocWriter.FORWARD">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="pageSize"><!-- --></A><H3>
pageSize</H3>
<PRE>
protected <A HREF="../../../com/lowagie/text/Rectangle.html">Rectangle</A> <B>pageSize</B></PRE>
<DL>
<DD>The pageSize.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="document"><!-- --></A><H3>
document</H3>
<PRE>
protected <A HREF="../../../com/lowagie/text/Document.html">Document</A> <B>document</B></PRE>
<DL>
<DD>This is the document that has to be written.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="os"><!-- --></A><H3>
os</H3>
<PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -