📄 multipartiterator.html
字号:
long maxSize)</CODE>
<BR>
<B>Deprecated.</B> Constructs a MultipartIterator with the specified buffer size and the specified file size limit in bytes</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/apache/struts/upload/MultipartIterator.html#MultipartIterator(javax.servlet.http.HttpServletRequest, int, long, java.lang.String)">MultipartIterator</A></B>(javax.servlet.http.HttpServletRequest request, int bufferSize, long maxSize, java.lang.String tempDir)</CODE>
<BR>
<B>Deprecated.</B> </TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected <A HREF="../../../../org/apache/struts/upload/MultipartElement.html">MultipartElement</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/upload/MultipartIterator.html#createFileMultipartElement()">createFileMultipartElement</A></B>()</CODE>
<BR>
<B>Deprecated.</B> Create a multipart element instance representing the file in the stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected java.io.File</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/upload/MultipartIterator.html#createLocalFile()">createLocalFile</A></B>()</CODE>
<BR>
<B>Deprecated.</B> Creates a file on disk from the current mulitpart element.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected <A HREF="../../../../org/apache/struts/upload/MultipartElement.html">MultipartElement</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/upload/MultipartIterator.html#createTextMultipartElement(java.lang.String)">createTextMultipartElement</A></B>(java.lang.String encoding)</CODE>
<BR>
<B>Deprecated.</B> Create a text element from the data in the body of the element.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/upload/MultipartIterator.html#getBoundaryFromContentType()">getBoundaryFromContentType</A></B>()</CODE>
<BR>
<B>Deprecated.</B> Parses a content-type String for the boundary.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/upload/MultipartIterator.html#getBufferSize()">getBufferSize</A></B>()</CODE>
<BR>
<B>Deprecated.</B> Get the maximum amount of bytes read from a line at one time</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/upload/MultipartIterator.html#getContentTypeOfRequest()">getContentTypeOfRequest</A></B>()</CODE>
<BR>
<B>Deprecated.</B> Gets the value of the Content-Type header of the request.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/upload/MultipartIterator.html#getElementEncoding()">getElementEncoding</A></B>()</CODE>
<BR>
<B>Deprecated.</B> Get the character encoding used for this current multipart element.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/upload/MultipartIterator.html#getMaxSize()">getMaxSize</A></B>()</CODE>
<BR>
<B>Deprecated.</B> Get the maximum post data size allowed for a multipart request</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../org/apache/struts/upload/MultipartElement.html">MultipartElement</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/upload/MultipartIterator.html#getNextElement()">getNextElement</A></B>()</CODE>
<BR>
<B>Deprecated.</B> Retrieves the next element in the iterator if one exists.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/upload/MultipartIterator.html#isMaxLengthExceeded()">isMaxLengthExceeded</A></B>()</CODE>
<BR>
<B>Deprecated.</B> Whether or not the maximum length has been exceeded by the client.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/upload/MultipartIterator.html#parseRequest()">parseRequest</A></B>()</CODE>
<BR>
<B>Deprecated.</B> Handles retrieving the boundary and setting the input stream</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/upload/MultipartIterator.html#setBufferSize(int)">setBufferSize</A></B>(int bufferSize)</CODE>
<BR>
<B>Deprecated.</B> Set the maximum amount of bytes read from a line at one time</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/upload/MultipartIterator.html#setMaxSize(long)">setMaxSize</A></B>(long maxSize)</CODE>
<BR>
<B>Deprecated.</B> Set the maximum post data size allowed for a multipart request</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><clinit>, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="DEFAULT_ENCODING"><!-- --></A><H3>
DEFAULT_ENCODING</H3>
<PRE>
private static final java.lang.String <B>DEFAULT_ENCODING</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DD>The default encoding of a text element if none is specified.</DL>
<HR>
<A NAME="TEXT_BUFFER_SIZE"><!-- --></A><H3>
TEXT_BUFFER_SIZE</H3>
<PRE>
private static final int <B>TEXT_BUFFER_SIZE</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DD>The size in bytes to copy of text data at a time.</DL>
<HR>
<A NAME="HEADER_CONTENT_TYPE"><!-- --></A><H3>
HEADER_CONTENT_TYPE</H3>
<PRE>
public static java.lang.String <B>HEADER_CONTENT_TYPE</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DD>The name of the Content-Type header.</DL>
<HR>
<A NAME="HEADER_CONTENT_DISPOSITION"><!-- --></A><H3>
HEADER_CONTENT_DISPOSITION</H3>
<PRE>
public static final java.lang.String <B>HEADER_CONTENT_DISPOSITION</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DD>The name of the Content-Disposition header.</DL>
<HR>
<A NAME="MESSAGE_CANNOT_RETRIEVE_BOUNDARY"><!-- --></A><H3>
MESSAGE_CANNOT_RETRIEVE_BOUNDARY</H3>
<PRE>
public static final java.lang.String <B>MESSAGE_CANNOT_RETRIEVE_BOUNDARY</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DD>The exception message for when the boundary of a multipart request can't be determined.</DL>
<HR>
<A NAME="PARAMETER_BOUNDARY"><!-- --></A><H3>
PARAMETER_BOUNDARY</H3>
<PRE>
private static final java.lang.String <B>PARAMETER_BOUNDARY</B></PRE>
<DL>
<DD><B>Deprecated.</B> </DL>
<HR>
<A NAME="FILE_PREFIX"><!-- --></A><H3>
FILE_PREFIX</H3>
<PRE>
private static final java.lang.String <B>FILE_PREFIX</B></PRE>
<DL>
<DD><B>Deprecated.</B> </DL>
<HR>
<A NAME="request"><!-- --></A><H3>
request</H3>
<PRE>
protected javax.servlet.http.HttpServletRequest <B>request</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DD>The request instance for this class</DL>
<HR>
<A NAME="inputStream"><!-- --></A><H3>
inputStream</H3>
<PRE>
protected <A HREF="../../../../org/apache/struts/upload/MultipartBoundaryInputStream.html">MultipartBoundaryInputStream</A> <B>inputStream</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DD>The InputStream to use to read the multipart data.</DL>
<HR>
<A NAME="boundary"><!-- --></A><H3>
boundary</H3>
<PRE>
protected java.lang.String <B>boundary</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DD>The boundary for this multipart request</DL>
<HR>
<A NAME="maxSize"><!-- --></A><H3>
maxSize</H3>
<PRE>
protected long <B>maxSize</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DD>The maximum file size in bytes allowed. Ignored if -1</DL>
<HR>
<A NAME="contentLength"><!-- --></A><H3>
contentLength</H3>
<PRE>
protected int <B>contentLength</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DD>The content length of this request</DL>
<HR>
<A NAME="diskBufferSize"><!-- --></A><H3>
diskBufferSize</H3>
<PRE>
protected int <B>diskBufferSize</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DD>The size in bytes written to the filesystem at a time [20K]</DL>
<HR>
<A NAME="bufferSize"><!-- --></A><H3>
bufferSize</H3>
<PRE>
protected int <B>bufferSize</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DD>The amount of data read from a request at a time. This also represents the maximum size in bytes of a line read from the request [4KB]</DL>
<HR>
<A NAME="tempDir"><!-- --></A><H3>
tempDir</H3>
<PRE>
protected java.lang.String <B>tempDir</B></PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -