📄 smartupload.html
字号:
public byte <B>getBinaryData</B>(int index)</PRE>
<DL>
<DD>getBinaryData Returns the byte corresponding to the table index containing the transmitted data.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - index of the Table.</DL>
</DD>
</DL>
<HR>
<A NAME="getFiles()"><!-- --></A><H3>
getFiles</H3>
<PRE>
public <A HREF="../../../com/jspsmart/upload/Files.html">Files</A> <B>getFiles</B>()</PRE>
<DL>
<DD>getFiles Returns the collection of the uploaded files.<DD><DL>
<DT><B>Returns:</B><DD>The collection of the uploaded files.</DL>
</DD>
</DL>
<HR>
<A NAME="getRequest()"><!-- --></A><H3>
getRequest</H3>
<PRE>
public <A HREF="../../../com/jspsmart/upload/Request.html">Request</A> <B>getRequest</B>()</PRE>
<DL>
<DD>getRequest Returns the request object.<DD><DL>
<DT><B>Returns:</B><DD>The request object.</DL>
</DD>
</DL>
<HR>
<A NAME="downloadFile(java.lang.String)"><!-- --></A><H3>
downloadFile</H3>
<PRE>
public void <B>downloadFile</B>(java.lang.String sourceFilePathName) throws javax.servlet.ServletException, java.io.IOException, <A HREF="../../../com/jspsmart/upload/SmartUploadException.html">SmartUploadException</A></PRE>
<DL>
<DD>Downloads a file.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sourceFilePathName</CODE> - The full path to the file to download.</DL>
</DD>
</DL>
<HR>
<A NAME="downloadFile(java.lang.String, java.lang.String)"><!-- --></A><H3>
downloadFile</H3>
<PRE>
public void <B>downloadFile</B>(java.lang.String sourceFilePathName, java.lang.String contentType) throws javax.servlet.ServletException, java.io.IOException, <A HREF="../../../com/jspsmart/upload/SmartUploadException.html">SmartUploadException</A>, <A HREF="../../../com/jspsmart/upload/SmartUploadException.html">SmartUploadException</A></PRE>
<DL>
<DD>Downloads a file.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sourceFilePathName</CODE> - The full path to the file to download.<DD><CODE>contentType</CODE> - the content type</DL>
</DD>
</DL>
<HR>
<A NAME="downloadFile(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
downloadFile</H3>
<PRE>
public void <B>downloadFile</B>(java.lang.String sourceFilePathName, java.lang.String contentType, java.lang.String destFileName) throws javax.servlet.ServletException, java.io.IOException, <A HREF="../../../com/jspsmart/upload/SmartUploadException.html">SmartUploadException</A></PRE>
<DL>
<DD>Downloads a file<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sourceFilePathName</CODE> - The full path to the file to download.<DD><CODE>contentType</CODE> - the content type.<DD><CODE>destFileName</CODE> - the suggested file name.</DL>
</DD>
</DL>
<HR>
<A NAME="downloadFile(java.lang.String, java.lang.String, java.lang.String, int)"><!-- --></A><H3>
downloadFile</H3>
<PRE>
public void <B>downloadFile</B>(java.lang.String sourceFilePathName, java.lang.String contentType, java.lang.String destFileName, int blockSize) throws javax.servlet.ServletException, java.io.IOException, <A HREF="../../../com/jspsmart/upload/SmartUploadException.html">SmartUploadException</A></PRE>
<DL>
<DD>Downloads a file.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sourceFilePathName</CODE> - The full path to the file to download.<DD><CODE>contentType</CODE> - the content type<DD><CODE>destFileName</CODE> - the suggested file name<DD><CODE>blockSize</CODE> - </DL>
</DD>
</DL>
<HR>
<A NAME="downloadField(java.sql.ResultSet, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
downloadField</H3>
<PRE>
public void <B>downloadField</B>(java.sql.ResultSet rs, java.lang.String columnName, java.lang.String contentType, java.lang.String destFileName) throws javax.servlet.ServletException, java.io.IOException, java.sql.SQLException</PRE>
<DL>
<DD>downloadField Downloads a field from a database's table.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>rs</CODE> - the resulstet.<DD><CODE>columnName</CODE> - the column name.<DD><CODE>contentType</CODE> - the content type.<DD><CODE>destFileName</CODE> - the suggested file name.</DL>
</DD>
</DL>
<HR>
<A NAME="fieldToFile(java.sql.ResultSet, java.lang.String, java.lang.String)"><!-- --></A><H3>
fieldToFile</H3>
<PRE>
public void <B>fieldToFile</B>(java.sql.ResultSet rs, java.lang.String columnName, java.lang.String destFilePathName) throws javax.servlet.ServletException, java.io.IOException, <A HREF="../../../com/jspsmart/upload/SmartUploadException.html">SmartUploadException</A>, java.sql.SQLException</PRE>
<DL>
<DD>Save a field from a database's table to a file.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>rs</CODE> - the resulstet.<DD><CODE>columnName</CODE> - the column name.<DD><CODE>destFileName</CODE> - the suggested file name.</DL>
</DD>
</DL>
<HR>
<A NAME="setDeniedFilesList(java.lang.String)"><!-- --></A><H3>
setDeniedFilesList</H3>
<PRE>
public void <B>setDeniedFilesList</B>(java.lang.String deniedFilesList) throws javax.servlet.ServletException, java.io.IOException, java.sql.SQLException</PRE>
<DL>
<DD>Set the list of denied files. <p>Contains the list of file's extensions which are denied to be uploaded. If this list is empty then no files are denied. All the files with an extension in the DeniedFileslist are denied even if they are in the AllowedFilesList.</p> <p>In order to deny the files without an extension the list must contain two commas ",,". By defect this property is empty.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>deniedFilesList</CODE> - The list of denied files</DL>
</DD>
</DL>
<HR>
<A NAME="setAllowedFilesList(java.lang.String)"><!-- --></A><H3>
setAllowedFilesList</H3>
<PRE>
public void <B>setAllowedFilesList</B>(java.lang.String allowedFilesList)</PRE>
<DL>
<DD>Set the list of allowed files. Contains the list of file's extensions which are allowed to be uploaded. If this list is empty then all files are allowed. If the list is not empty then only the files with a specified extension are allowed. <p>In order to allow the files without extension list must contain two commas ",,". By defect this property is empty.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>allowedFilesList</CODE> - the list of allowed files</DL>
</DD>
</DL>
<HR>
<A NAME="setDenyPhysicalPath(boolean)"><!-- --></A><H3>
setDenyPhysicalPath</H3>
<PRE>
public void <B>setDenyPhysicalPath</B>(boolean deny)</PRE>
<DL>
<DD>Sets if the component deny physical path. <p>Prevents to access a path other that a virtual path of the Web Server. By defect this property is false.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>denyPhysicalPath</CODE> - is a boolean</DL>
</DD>
</DL>
<HR>
<A NAME="setForcePhysicalPath(boolean)"><!-- --></A><H3>
setForcePhysicalPath</H3>
<PRE>
public void <B>setForcePhysicalPath</B>(boolean force)</PRE>
<DL>
<DD>Sets if the component force physical path. <p>By default, the component consider a path as a virtual path. To oblige the component to consider all path as physical path, set this property to true.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>forcePhysicalPath</CODE> - The boolean value.</DL>
</DD>
</DL>
<HR>
<A NAME="setContentDisposition(java.lang.String)"><!-- --></A><H3>
setContentDisposition</H3>
<PRE>
public void <B>setContentDisposition</B>(java.lang.String contentDisposition)</PRE>
<DL>
<DD>Sets the Content Disposition. Contains the string of the Content Disposition Hearders for the MIME Type.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>contentDisposition</CODE> - The content disposition.</DL>
</DD>
</DL>
<HR>
<A NAME="setTotalMaxFileSize(long)"><!-- --></A><H3>
setTotalMaxFileSize</H3>
<PRE>
public void <B>setTotalMaxFileSize</B>(long totalMaxFileSize)</PRE>
<DL>
<DD>Sets the total maximum file size. <p>Is the maximum allowed size of all files to be uploaded. If this value is null then there is no limit for the total file's size uploaded. By defect this property is null.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>totalMaxFileSize</CODE> - the total max file size</DL>
</DD>
</DL>
<HR>
<A NAME="setMaxFileSize(long)"><!-- --></A><H3>
setMaxFileSize</H3>
<PRE>
public void <B>setMaxFileSize</B>(long maxFileSize)</PRE>
<DL>
<DD>Sets the maximum file size. <p>Is the maximum allowed size of one file to be uploaded. If this value is null then there is no limit for the file's size uploaded. By defect this property is null.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>maxFileSize</CODE> - the max file size.</DL>
</DD>
</DL>
<HR>
<A NAME="uploadInFile(java.lang.String)"><!-- --></A><H3>
uploadInFile</H3>
<PRE>
public void <B>uploadInFile</B>(java.lang.String destFilePathName) throws java.io.IOException, <A HREF="../../../com/jspsmart/upload/SmartUploadException.html">SmartUploadException</A></PRE>
<DL>
<DD>The uploadInFile method creates a new file with all data of the POST form. <p>This method can't be called if the upload() method is already called.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>destFilePathName</CODE> - The path of the file.<DT><B>Throws:</B><DD>java.io.IOException - <DD>java.lang.SecurityException - <DD><A HREF="../../../com/jspsmart/upload/SmartUploadException.html">SmartUploadException</A> - </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=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="package-summary.html"><FONT ID="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 ID="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT ID="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/jspsmart/upload/Request.html"><B>PREV CLASS</B></A>
NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="SmartUpload.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>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -