📄 multipartiterator.html
字号:
<DL>
<DD><B>Deprecated.</B> <DD>The temporary directory to store files</DL>
<HR>
<A NAME="contentType"><!-- --></A><H3>
contentType</H3>
<PRE>
protected java.lang.String <B>contentType</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DD>The content-type.</DL>
<HR>
<A NAME="maxLengthExceeded"><!-- --></A><H3>
maxLengthExceeded</H3>
<PRE>
protected boolean <B>maxLengthExceeded</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Whether the maximum length has been exceeded.</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="MultipartIterator(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
MultipartIterator</H3>
<PRE>
public <B>MultipartIterator</B>(javax.servlet.http.HttpServletRequest request) throws java.io.IOException</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Constructs a MultipartIterator with a default buffer size and no file size limit<DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The multipart request to iterate</DL>
</DD>
</DL>
<HR>
<A NAME="MultipartIterator(javax.servlet.http.HttpServletRequest, int)"><!-- --></A><H3>
MultipartIterator</H3>
<PRE>
public <B>MultipartIterator</B>(javax.servlet.http.HttpServletRequest request, int bufferSize) throws java.io.IOException</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Constructs a MultipartIterator with the specified buffer size and no file size limit<DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The multipart request to iterate<DD><CODE>bufferSize</CODE> - The size in bytes that should be read from the input stream at a times</DL>
</DD>
</DL>
<HR>
<A NAME="MultipartIterator(javax.servlet.http.HttpServletRequest, int, long)"><!-- --></A><H3>
MultipartIterator</H3>
<PRE>
public <B>MultipartIterator</B>(javax.servlet.http.HttpServletRequest request, int bufferSize, long maxSize) throws java.io.IOException</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Constructs a MultipartIterator with the specified buffer size and the specified file size limit in bytes<DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The multipart request to iterate<DD><CODE>bufferSize</CODE> - The size in bytes that should be read from the input stream at a times<DD><CODE>maxSize</CODE> - The maximum size in bytes allowed for a multipart element's data</DL>
</DD>
</DL>
<HR>
<A NAME="MultipartIterator(javax.servlet.http.HttpServletRequest, int, long, java.lang.String)"><!-- --></A><H3>
MultipartIterator</H3>
<PRE>
public <B>MultipartIterator</B>(javax.servlet.http.HttpServletRequest request, int bufferSize, long maxSize, java.lang.String tempDir) throws java.io.IOException</PRE>
<DL>
<DD><B>Deprecated.</B> </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="parseRequest()"><!-- --></A><H3>
parseRequest</H3>
<PRE>
protected void <B>parseRequest</B>() throws java.io.IOException</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Handles retrieving the boundary and setting the input stream</DL>
<HR>
<A NAME="getNextElement()"><!-- --></A><H3>
getNextElement</H3>
<PRE>
public <A HREF="../../../../org/apache/struts/upload/MultipartElement.html">MultipartElement</A> <B>getNextElement</B>() throws java.io.IOException</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Retrieves the next element in the iterator if one exists.<DD><DL>
<DT><B>Returns:</B><DD>a <A HREF="../../../../org/apache/struts/upload/MultipartElement.html"><CODE>MultipartElement</CODE></A> representing the next element in the request data<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if the post size exceeds the maximum file size passed in the 3 argument constructor or if the "ISO-8859-1" encoding isn't found</DL>
</DD>
</DL>
<HR>
<A NAME="getElementEncoding()"><!-- --></A><H3>
getElementEncoding</H3>
<PRE>
protected java.lang.String <B>getElementEncoding</B>()</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Get the character encoding used for this current multipart element.</DL>
<HR>
<A NAME="createTextMultipartElement(java.lang.String)"><!-- --></A><H3>
createTextMultipartElement</H3>
<PRE>
protected <A HREF="../../../../org/apache/struts/upload/MultipartElement.html">MultipartElement</A> <B>createTextMultipartElement</B>(java.lang.String encoding) throws java.io.IOException</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Create a text element from the data in the body of the element.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>encoding</CODE> - The character encoding of the string.</DL>
</DD>
</DL>
<HR>
<A NAME="createFileMultipartElement()"><!-- --></A><H3>
createFileMultipartElement</H3>
<PRE>
protected <A HREF="../../../../org/apache/struts/upload/MultipartElement.html">MultipartElement</A> <B>createFileMultipartElement</B>() throws java.io.IOException</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Create a multipart element instance representing the file in the stream.</DL>
<HR>
<A NAME="setBufferSize(int)"><!-- --></A><H3>
setBufferSize</H3>
<PRE>
public void <B>setBufferSize</B>(int bufferSize)</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Set the maximum amount of bytes read from a line at one time<DD><DL>
<DT><B>See Also: </B><DD><CODE>ServletInputStream.readLine(byte[], int, int)</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getBufferSize()"><!-- --></A><H3>
getBufferSize</H3>
<PRE>
public int <B>getBufferSize</B>()</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Get the maximum amount of bytes read from a line at one time<DD><DL>
<DT><B>See Also: </B><DD><CODE>ServletInputStream.readLine(byte[], int, int)</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setMaxSize(long)"><!-- --></A><H3>
setMaxSize</H3>
<PRE>
public void <B>setMaxSize</B>(long maxSize)</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Set the maximum post data size allowed for a multipart request<DD><DL>
<DT><B>Parameters:</B><DD><CODE>maxSize</CODE> - The maximum post data size in bytes, set to <code>-1</code> for no limit</DL>
</DD>
</DL>
<HR>
<A NAME="getMaxSize()"><!-- --></A><H3>
getMaxSize</H3>
<PRE>
public long <B>getMaxSize</B>()</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Get the maximum post data size allowed for a multipart request<DD><DL>
<DT><B>Returns:</B><DD>The maximum post data size in bytes</DL>
</DD>
</DL>
<HR>
<A NAME="isMaxLengthExceeded()"><!-- --></A><H3>
isMaxLengthExceeded</H3>
<PRE>
public boolean <B>isMaxLengthExceeded</B>()</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Whether or not the maximum length has been exceeded by the client.</DL>
<HR>
<A NAME="getBoundaryFromContentType()"><!-- --></A><H3>
getBoundaryFromContentType</H3>
<PRE>
private final void <B>getBoundaryFromContentType</B>() throws java.io.IOException</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Parses a content-type String for the boundary.</DL>
<HR>
<A NAME="getContentTypeOfRequest()"><!-- --></A><H3>
getContentTypeOfRequest</H3>
<PRE>
private final void <B>getContentTypeOfRequest</B>()</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Gets the value of the Content-Type header of the request.</DL>
<HR>
<A NAME="createLocalFile()"><!-- --></A><H3>
createLocalFile</H3>
<PRE>
protected java.io.File <B>createLocalFile</B>() throws java.io.IOException</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Creates a file on disk from the current mulitpart element.</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=2 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="class-use/MultipartIterator.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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="../../../../org/apache/struts/upload/MultipartElement.html"><B>PREV CLASS</B></A>
<A HREF="../../../../org/apache/struts/upload/MultipartRequestWrapper.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="MultipartIterator.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | <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>
Copyright
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -