📄 itextoutputfilter.html
字号:
<DL>
<DD>Request key where to store the desired DocWriter class name.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.servlets.ITextOutputFilter.DOCWRITER_KEY">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="CONTENT_TYPE_KEY"><!-- --></A><H3>
CONTENT_TYPE_KEY</H3>
<PRE>
public static final <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>CONTENT_TYPE_KEY</B></PRE>
<DL>
<DD>Request key where to store the desired Content Type to send for the custom DocWriter.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.servlets.ITextOutputFilter.CONTENT_TYPE_KEY">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="pageSize"><!-- --></A><H3>
pageSize</H3>
<PRE>
private <A HREF="../../../com/lowagie/text/Rectangle.html">Rectangle</A> <B>pageSize</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="outputType"><!-- --></A><H3>
outputType</H3>
<PRE>
private int <B>outputType</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="docWriter"><!-- --></A><H3>
docWriter</H3>
<PRE>
private <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>docWriter</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="contentType"><!-- --></A><H3>
contentType</H3>
<PRE>
private <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>contentType</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="PAGE_SIZE"><!-- --></A><H3>
PAGE_SIZE</H3>
<PRE>
private static final <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>PAGE_SIZE</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.servlets.ITextOutputFilter.PAGE_SIZE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="OUTPUT_TYPE"><!-- --></A><H3>
OUTPUT_TYPE</H3>
<PRE>
private static final <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>OUTPUT_TYPE</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.servlets.ITextOutputFilter.OUTPUT_TYPE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="CUSTOM_WRITER"><!-- --></A><H3>
CUSTOM_WRITER</H3>
<PRE>
private static final <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>CUSTOM_WRITER</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.servlets.ITextOutputFilter.CUSTOM_WRITER">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="CONTENT_TYPE"><!-- --></A><H3>
CONTENT_TYPE</H3>
<PRE>
private static final <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>CONTENT_TYPE</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.lowagie.servlets.ITextOutputFilter.CONTENT_TYPE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="INIT_PARAMS"><!-- --></A><H3>
INIT_PARAMS</H3>
<PRE>
private static final <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Class.html">Class</A>[] <B>INIT_PARAMS</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="construtores"><!-- --></A><H3>
construtores</H3>
<PRE>
private final <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/HashMap.html">HashMap</A> <B>construtores</B></PRE>
<DL>
<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="ITextOutputFilter()"><!-- --></A><H3>
ITextOutputFilter</H3>
<PRE>
public <B>ITextOutputFilter</B>()</PRE>
<DL>
</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="init(javax.servlet.FilterConfig)"><!-- --></A><H3>
init</H3>
<PRE>
public void <B>init</B>(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException</PRE>
<DL>
<DD><p>Initializes the filter. Possible configuration parameters are:</p> <ul> <li>pageSize: the desired default page size. This must be the name of a constant in the PageSize class. Default: A4.</li> <li>defaultOutput: The default output desired. Currently, only the writer bundled with iText are supported. Possible values are: PDF, RTF, XML, HTML. Default: PDF.</li> <li>writer: if by default you want to use a custom DocWriter, provide the class name in this parameter. The class must have a static method called "getInstance()" that receives two parameters: a <A HREF="../../../com/lowagie/text/Document.html"><CODE>Document</CODE></A> and an <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/OutputStream.html"><CODE>OutputStream</CODE></A>, just like the other DocWriters available with iText.</li> <li>contentType: if you define a custom writer, you may define a custom content type to be sent by default. If it is not provided, the default (PDF) will be used.</li> </ul>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>init</CODE> in interface <CODE>javax.servlet.Filter</CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/lowagie/servlets/OutputFilterBase.html#init(javax.servlet.FilterConfig)">init</A></CODE> in class <CODE><A HREF="../../../com/lowagie/servlets/OutputFilterBase.html">OutputFilterBase</A></CODE></DL>
</DD>
<DD><DL>
<DD><CODE>javax.servlet.ServletException</CODE><DT><B>See Also:</B><DD><A HREF="../../../com/lowagie/text/PageSize.html"><CODE>PageSize</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="perform(javax.servlet.ServletRequest, javax.servlet.ServletResponse, java.io.InputStream)"><!-- --></A><H3>
perform</H3>
<PRE>
public void <B>perform</B>(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html">InputStream</A> data) throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Exception.html">Exception</A></PRE>
<DL>
<DD><p>Calls iText to turn the passed input stream into a document in the desired format (either the default, or a format passed as a request attribute). The input stream must contain a XML document in the format understood by iText. Currently, tag maps are not supported.</p> <p>The following atributes may be provided in the request to modify the target document:</p> <ul> <li>PAGE_SIZE_KEY: the page size. Must be an instance of <A HREF="../../../com/lowagie/text/Rectangle.html"><CODE>Rectangle</CODE></A>.</li> <li>OUTPUT_TYPE_KEY: the type of the output document. Must be an <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Integer.html"><CODE>Integer</CODE></A> containing one of the constant values defined in this class. Defaults to PDF.</li> <li>FILENAME_KEY: the file name to be sent to the browser, using the "Content-Disposition" HTTP header.</li> <li>TAGMAP_KEY: if you want to use a tagmap to translate the XML file then put either a HashMap or a String with the path to the tagmap file in this attribute.</li> <li>DOCWRITER_KEY: if you want to use a custom DocWriter, put the class name in this attribute. The class must have a method as described <A HREF="../../../com/lowagie/servlets/ITextOutputFilter.html#init(javax.servlet.FilterConfig)"><CODE>above</CODE></A>.</li> <li>CONTENT_TYPE_KEY: you may specify a custom content type <b>only</b> if you use a custom DocWriter. If a custom DocWriter is used and no content type is specified here, the default content type (either PDF or the content type defined for the default custom DocWriter) is used.</li> </ul>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/servlets/OutputFilterBase.html#perform(javax.servlet.ServletRequest, javax.servlet.ServletResponse, java.io.InputStream)">perform</A></CODE> in class <CODE><A HREF="../../../com/lowagie/servlets/OutputFilterBase.html">OutputFilterBase</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The original request from the filter chain.<DD><CODE>response</CODE> - The original response from the filter chain.<DD><CODE>data</CODE> - The data collected from the called resources.<DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Exception.html">Exception</A></CODE></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../com/lowagie/servlets/BufferedResponse.ByteArrayServletStream.html"><B>PREV CLASS</B></A>
<A HREF="../../../com/lowagie/servlets/OutputFilterBase.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="ITextOutputFilter.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -