📄 htmlwriter.html
字号:
<DD>This is a path for images.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="pageN"><!-- --></A><H3>
pageN</H3>
<PRE>
protected static int <B>pageN</B></PRE>
<DL>
<DD>Stores the page number.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="header"><!-- --></A><H3>
header</H3>
<PRE>
protected <A HREF="../../../../com/lowagie/text/HeaderFooter.html">HeaderFooter</A> <B>header</B></PRE>
<DL>
<DD>This is the textual part of a header
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="footer"><!-- --></A><H3>
footer</H3>
<PRE>
protected <A HREF="../../../../com/lowagie/text/HeaderFooter.html">HeaderFooter</A> <B>footer</B></PRE>
<DL>
<DD>This is the textual part of the footer
<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="HtmlWriter(com.lowagie.text.Document, java.io.OutputStream)"><!-- --></A><H3>
HtmlWriter</H3>
<PRE>
protected <B>HtmlWriter</B>(<A HREF="../../../../com/lowagie/text/Document.html">Document</A> doc, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/OutputStream.html">OutputStream</A> os)</PRE>
<DL>
<DD>Constructs a <CODE>HtmlWriter</CODE>.
<P>
<DT><B>Parameters:</B><DD><CODE>doc</CODE> - The <CODE>Document</CODE> that has to be written as HTML<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="getInstance(com.lowagie.text.Document, java.io.OutputStream)"><!-- --></A><H3>
getInstance</H3>
<PRE>
public static <A HREF="../../../../com/lowagie/text/html/HtmlWriter.html">HtmlWriter</A> <B>getInstance</B>(<A HREF="../../../../com/lowagie/text/Document.html">Document</A> document, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/OutputStream.html">OutputStream</A> os)</PRE>
<DL>
<DD>Gets an instance of the <CODE>HtmlWriter</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><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.<DT><B>Returns:</B><DD>a new <CODE>HtmlWriter</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>
<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><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocWriter.html#newPage()">newPage</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/DocWriter.html">DocWriter</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><CODE>true</CODE> if this action succeeded, <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="add(com.lowagie.text.Element)"><!-- --></A><H3>
add</H3>
<PRE>
public boolean <B>add</B>(<A HREF="../../../../com/lowagie/text/Element.html">Element</A> 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>
<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><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocWriter.html#add(com.lowagie.text.Element)">add</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/DocWriter.html">DocWriter</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><CODE>true</CODE> if the element 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="open()"><!-- --></A><H3>
open</H3>
<PRE>
public void <B>open</B>()</PRE>
<DL>
<DD>Signals that the <CODE>Document</CODE> has been opened and that <CODE>Elements</CODE> can be added. <P> The <CODE>HEAD</CODE>-section of the HTML-document is written.
<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><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocWriter.html#open()">open</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/DocWriter.html">DocWriter</A></CODE></DL>
</DD>
<DD><DL>
</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">DocListener</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocWriter.html#close()">close</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/DocWriter.html">DocWriter</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="initHeader()"><!-- --></A><H3>
initHeader</H3>
<PRE>
protected void <B>initHeader</B>()</PRE>
<DL>
<DD>Adds the header to the top of the </CODE>Document</CODE>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="initFooter()"><!-- --></A><H3>
initFooter</H3>
<PRE>
protected void <B>initFooter</B>()</PRE>
<DL>
<DD>Adds the header to the top of the </CODE>Document</CODE>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="writeHeader(com.lowagie.text.Meta)"><!-- --></A><H3>
writeHeader</H3>
<PRE>
protected void <B>writeHeader</B>(<A HREF="../../../../com/lowagie/text/Meta.html">Meta</A> meta) throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></PRE>
<DL>
<DD>Writes a Metatag in the header.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>meta</CODE> - the element that has to be written<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="writeLink(com.lowagie.text.Header)"><!-- --></A><H3>
writeLink</H3>
<PRE>
protected void <B>writeLink</B>(<A HREF="../../../../com/lowagie/text/Header.html">Header</A> header) throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></PRE>
<DL>
<DD>Writes a link in the header.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>header</CODE> - the element that has to be written<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="writeJavaScript(com.lowagie.text.Header)"><!-- --></A><H3>
writeJavaScript</H3>
<PRE>
protected void <B>writeJavaScript</B>(<A HREF="../../../../com/lowagie/text/Header.html">Header</A> header) throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></PRE>
<DL>
<DD>Writes a JavaScript section or, if the markup attribute HtmlTags.URL is set, a JavaScript reference in the header.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>header</CODE> - the element that has to be written<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="writeComment(java.lang.String)"><!-- --></A><H3>
writeComment</H3>
<PRE>
protected void <B>writeComment</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> comment) throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></PRE>
<DL>
<DD>Writes some comment. <P> This method writes some comment.
<P>
<DD><DL>
</DL>
</DD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -