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

📄 docwriter.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<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" 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="DocWriter()"><!-- --></A><H3>DocWriter</H3><PRE>protected <B>DocWriter</B>()</PRE><DL></DL><HR><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" title="class in com.lowagie.text">Document</A>&nbsp;document,                    <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;os)</PRE><DL><DD>Constructs a <CODE>DocWriter</CODE>.<P><DL><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></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="add(com.lowagie.text.Element)"><!-- --></A><H3>add</H3><PRE>public boolean <B>add</B>(<A HREF="../../../com/lowagie/text/Element.html" title="interface in com.lowagie.text">Element</A>&nbsp;element)            throws <A HREF="../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></PRE><DL><DD>Signals that an <CODE>Element</CODE> was added to the <CODE>Document</CODE>. <P> This method should be overridden 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" title="interface in com.lowagie.text">ElementListener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - A high level object to add<DT><B>Returns:</B><DD><CODE>false</CODE><DT><B>Throws:</B><DD><CODE><A HREF="../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">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" title="interface in com.lowagie.text">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" title="class in com.lowagie.text">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" title="interface in com.lowagie.text">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="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" title="interface in com.lowagie.text">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>()</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" title="interface in com.lowagie.text">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" title="class in com.lowagie.text">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" title="class in com.lowagie.text">HeaderFooter</A>&nbsp;header)</PRE><DL><DD>Changes the header of this document. <P> This method should be overridden 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" title="interface in com.lowagie.text">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 overridden 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" title="interface in com.lowagie.text">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" title="class in com.lowagie.text">HeaderFooter</A>&nbsp;footer)</PRE><DL><DD>Changes the footer of this document. <P> This method should be overridden 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" title="interface in com.lowagie.text">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 overridden 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" title="interface in com.lowagie.text">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 overridden 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" title="interface in com.lowagie.text">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 overridden 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" title="interface in com.lowagie.text">DocListener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pageN</CODE> - the new page number</DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public void <B>close</B>()</PRE><DL><DD>Signals that the <CODE>Document</CODE> was closed and that no other <CODE>Elements</CODE> will be added.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/DocListener.html#close()">close</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/DocListener.html" title="interface in com.lowagie.text">DocListener</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getISOBytes(java.lang.String)"><!-- --></A><H3>getISOBytes</H3><PRE>public static final byte[] <B>getISOBytes</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;text)</PRE><DL><DD>Converts a <CODE>String</CODE> into a <CODE>Byte</CODE> array according to the ISO-8859-1 codepage.<P>

⌨️ 快捷键说明

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