📄 htmlwriter.html
字号:
<HR><A NAME="standardfont"><!-- --></A><H3>standardfont</H3><PRE>protected <A HREF="../../../../com/lowagie/text/Font.html" title="class in com.lowagie.text">Font</A> <B>standardfont</B></PRE><DL><DD>This is the standard font of the HTML.<P><DL></DL></DL><HR><A NAME="imagepath"><!-- --></A><H3>imagepath</H3><PRE>protected <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> <B>imagepath</B></PRE><DL><DD>This is a path for images.<P><DL></DL></DL><HR><A NAME="pageN"><!-- --></A><H3>pageN</H3><PRE>protected 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" title="class in com.lowagie.text">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" title="class in com.lowagie.text">HeaderFooter</A> <B>footer</B></PRE><DL><DD>This is the textual part of the footer<P><DL></DL></DL><HR><A NAME="markup"><!-- --></A><H3>markup</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</A> <B>markup</B></PRE><DL><DD>Store the markup properties of a MarkedObject.<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="HtmlWriter(com.lowagie.text.Document, java.io.OutputStream)"><!-- --></A><H3>HtmlWriter</H3><PRE>protected <B>HtmlWriter</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 <CODE>HtmlWriter</CODE>.<P><DL><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></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/html/HtmlWriter.html" title="class in com.lowagie.text.html">HtmlWriter</A> <B>getInstance</B>(<A HREF="../../../../com/lowagie/text/Document.html" title="class in com.lowagie.text">Document</A> 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> os)</PRE><DL><DD>Gets an instance of the <CODE>HtmlWriter</CODE>.<P><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>()</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" title="interface in com.lowagie.text">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" title="class in com.lowagie.text">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" 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="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> 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><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><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" title="class in com.lowagie.text">DocWriter</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - a high level object that has to be translated to HTML<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" 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> 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" title="interface in com.lowagie.text">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" title="class in com.lowagie.text">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" title="interface in com.lowagie.text">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" title="class in com.lowagie.text">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></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></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" title="class in com.lowagie.text">Meta</A> meta) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Writes a Metatag in the header.<P><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.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">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" title="class in com.lowagie.text">Header</A> header) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Writes a link in the header.<P><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.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">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" title="class in com.lowagie.text">Header</A> header) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -