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

📄 docwriter.html

📁 java编程java编程java编程java编程java编程java编程java编程
💻 HTML
📖 第 1 页 / 共 4 页
字号:
protected <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/BufferedOutputStream.html">BufferedOutputStream</A> <B>os</B></PRE>
<DL>
<DD>The outputstream of this writer.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="open"><!-- --></A><H3>
open</H3>
<PRE>
protected boolean <B>open</B></PRE>
<DL>
<DD>Is the writer open for writing?
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="pause"><!-- --></A><H3>
pause</H3>
<PRE>
protected boolean <B>pause</B></PRE>
<DL>
<DD>Do we have to pause all writing actions?
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="closeStream"><!-- --></A><H3>
closeStream</H3>
<PRE>
protected boolean <B>closeStream</B></PRE>
<DL>
<DD>Closes the stream on document close
<P>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="DocWriter(com.lowagie.text.Document, java.io.OutputStream)"><!-- --></A><H3>
DocWriter</H3>
<PRE>
protected <B>DocWriter</B>(<A HREF="../../../com/lowagie/text/Document.html">Document</A>&nbsp;document,                    <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/OutputStream.html">OutputStream</A>&nbsp;os)</PRE>
<DL>
<DD>Constructs a <CODE>DocWriter</CODE>.
<P>
<DT><B>Parameters:</B><DD><CODE>document</CODE> - The <CODE>Document</CODE> that has to be written<DD><CODE>os</CODE> - The <CODE>OutputStream</CODE> the writer has to write to.</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="add(com.lowagie.text.Element)"><!-- --></A><H3>
add</H3>
<PRE>
public boolean <B>add</B>(<A HREF="../../../com/lowagie/text/Element.html">Element</A>&nbsp;element)            throws <A HREF="../../../com/lowagie/text/DocumentException.html">DocumentException</A></PRE>
<DL>
<DD>Signals that an <CODE>Element</CODE> was added to the <CODE>Document</CODE>. <P> This method should be overriden in the specific <CODE>DocWriter<CODE> classes derived from this abstract class.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/ElementListener.html#add(com.lowagie.text.Element)">add</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/ElementListener.html">ElementListener</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><CODE>false</CODE><DT><B>Throws:</B><DD><CODE><A HREF="../../../com/lowagie/text/DocumentException.html">DocumentException</A></CODE> - when a document isn't open yet, or has been closed</DL>
</DD>
</DL>
<HR>

<A NAME="open()"><!-- --></A><H3>
open</H3>
<PRE>
public void <B>open</B>()</PRE>
<DL>
<DD>Signals that the <CODE>Document</CODE> was opened.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/DocListener.html#open()">open</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/DocListener.html">DocListener</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setPageSize(com.lowagie.text.Rectangle)"><!-- --></A><H3>
setPageSize</H3>
<PRE>
public boolean <B>setPageSize</B>(<A HREF="../../../com/lowagie/text/Rectangle.html">Rectangle</A>&nbsp;pageSize)</PRE>
<DL>
<DD>Sets the pagesize.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/DocListener.html#setPageSize(com.lowagie.text.Rectangle)">setPageSize</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/DocListener.html">DocListener</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pageSize</CODE> - the new pagesize<DT><B>Returns:</B><DD>a <CODE>boolean</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="add(com.lowagie.text.Watermark)"><!-- --></A><H3>
add</H3>
<PRE>
public boolean <B>add</B>(<A HREF="../../../com/lowagie/text/Watermark.html">Watermark</A>&nbsp;watermark)</PRE>
<DL>
<DD>Sets the <CODE>Watermark</CODE>. <P> This method should be overriden in the specific <CODE>DocWriter<CODE> classes derived from this abstract class if they actually support the use of a <CODE>Watermark</CODE>.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/DocListener.html#add(com.lowagie.text.Watermark)">add</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/DocListener.html">DocListener</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><CODE>false</CODE> (because watermarks aren't supported by default).</DL>
</DD>
</DL>
<HR>

<A NAME="removeWatermark()"><!-- --></A><H3>
removeWatermark</H3>
<PRE>
public void <B>removeWatermark</B>()</PRE>
<DL>
<DD>Removes the <CODE>Watermark</CODE> (if there is one).
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/DocListener.html#removeWatermark()">removeWatermark</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/DocListener.html">DocListener</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setMargins(float, float, float, float)"><!-- --></A><H3>
setMargins</H3>
<PRE>
public boolean <B>setMargins</B>(float&nbsp;marginLeft,                          float&nbsp;marginRight,                          float&nbsp;marginTop,                          float&nbsp;marginBottom)</PRE>
<DL>
<DD>Sets the margins. <P> This does nothing. Has to be overridden if needed.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/DocListener.html#setMargins(float, float, float, float)">setMargins</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/DocListener.html">DocListener</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>marginLeft</CODE> - the margin on the left<DD><CODE>marginRight</CODE> - the margin on the right<DD><CODE>marginTop</CODE> - the margin on the top<DD><CODE>marginBottom</CODE> - the margin on the bottom<DT><B>Returns:</B><DD><CODE>false</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="newPage()"><!-- --></A><H3>
newPage</H3>
<PRE>
public boolean <B>newPage</B>()                throws <A HREF="../../../com/lowagie/text/DocumentException.html">DocumentException</A></PRE>
<DL>
<DD>Signals that an new page has to be started. <P> This does nothing. Has to be overridden if needed.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/DocListener.html#newPage()">newPage</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/DocListener.html">DocListener</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><CODE>true</CODE> if the page was added, <CODE>false</CODE> if not.<DT><B>Throws:</B><DD><CODE><A HREF="../../../com/lowagie/text/DocumentException.html">DocumentException</A></CODE> - when a document isn't open yet, or has been closed</DL>
</DD>
</DL>
<HR>

<A NAME="setHeader(com.lowagie.text.HeaderFooter)"><!-- --></A><H3>
setHeader</H3>
<PRE>
public void <B>setHeader</B>(<A HREF="../../../com/lowagie/text/HeaderFooter.html">HeaderFooter</A>&nbsp;header)</PRE>
<DL>
<DD>Changes the header of this document. <P> This method should be overriden in the specific <CODE>DocWriter<CODE> classes derived from this abstract class if they actually support the use of headers.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/DocListener.html#setHeader(com.lowagie.text.HeaderFooter)">setHeader</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/DocListener.html">DocListener</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>header</CODE> - the new header</DL>
</DD>
</DL>
<HR>

<A NAME="resetHeader()"><!-- --></A><H3>
resetHeader</H3>
<PRE>
public void <B>resetHeader</B>()</PRE>
<DL>
<DD>Resets the header of this document. <P> This method should be overriden in the specific <CODE>DocWriter<CODE> classes derived from this abstract class if they actually support the use of headers.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/DocListener.html#resetHeader()">resetHeader</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/DocListener.html">DocListener</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setFooter(com.lowagie.text.HeaderFooter)"><!-- --></A><H3>
setFooter</H3>
<PRE>
public void <B>setFooter</B>(<A HREF="../../../com/lowagie/text/HeaderFooter.html">HeaderFooter</A>&nbsp;footer)</PRE>
<DL>
<DD>Changes the footer of this document. <P> This method should be overriden in the specific <CODE>DocWriter<CODE> classes derived from this abstract class if they actually support the use of footers.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/DocListener.html#setFooter(com.lowagie.text.HeaderFooter)">setFooter</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/DocListener.html">DocListener</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>footer</CODE> - the new footer</DL>
</DD>
</DL>
<HR>

<A NAME="resetFooter()"><!-- --></A><H3>
resetFooter</H3>
<PRE>
public void <B>resetFooter</B>()</PRE>
<DL>
<DD>Resets the footer of this document. <P> This method should be overriden in the specific <CODE>DocWriter<CODE> classes derived from this abstract class if they actually support the use of footers.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/DocListener.html#resetFooter()">resetFooter</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/DocListener.html">DocListener</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="resetPageCount()"><!-- --></A><H3>
resetPageCount</H3>
<PRE>
public void <B>resetPageCount</B>()</PRE>
<DL>
<DD>Sets the page number to 0. <P> This method should be overriden in the specific <CODE>DocWriter<CODE> classes derived from this abstract class if they actually support the use of pagenumbers.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/DocListener.html#resetPageCount()">resetPageCount</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/DocListener.html">DocListener</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setPageCount(int)"><!-- --></A><H3>
setPageCount</H3>
<PRE>
public void <B>setPageCount</B>(int&nbsp;pageN)</PRE>
<DL>
<DD>Sets the page number. <P> This method should be overriden in the specific <CODE>DocWriter<CODE> classes derived from this abstract class if they actually support the use of pagenumbers.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/DocListener.html#setPageCount(int)">setPageCount</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/DocListener.html">DocListener</A></CODE></DL>
</DD>
<DD><DL>

⌨️ 快捷键说明

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