-
大小: 2.37MB文件类型: .zip金币: 2下载: 2 次发布日期: 2023-10-30
- 语言: Java
- 标签: eWebEditor
资源简介
无序列号,仅用于开发测试使用。
注:在本机 http://localhost/ 或 http://127.0.0.1/ 开发测试访问时,不需要序列号,软件可以使用。
代码片段和文件信息
package com.jspsmart.upload;
import java.io.ByteArrayInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.math.BigInteger;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.servlet.ServletException;
public class File
{
private SmartUpload m_parent;
private int m_startData;
private int m_endData;
private int m_size;
private String m_fieldname;
private String m_filename;
private String m_fileExt;
private String m_filePathName;
private String m_contentType;
private String m_contentDisp;
private String m_typeMime;
private String m_subTypeMime;
//private String m_contentString;
private boolean m_isMissing;
public static final int SAVEAS_AUTO = 0;
public static final int SAVEAS_VIRTUAL = 1;
public static final int SAVEAS_PHYSICAL = 2;
File()
{
m_startData = 0;
m_endData = 0;
m_size = 0;
m_fieldname = ““;//new String(““);
m_filename = ““;//new String();
m_fileExt = ““;//new String();
m_filePathName = ““;//new String(““);
m_contentType = ““;//new String();
m_contentDisp = ““;//new String();
m_typeMime = ““;//new String();
m_subTypeMime = ““;//new String();
//m_contentString = ““;//new String();
m_isMissing = true;
}
public void saveAs(String s) throws IOExceptionSmartUploadException
{
saveAs(s0);
}
public void saveAs(String sint i) throws IOExceptionSmartUploadException
{
//Method invokes dubious new String() constructor; just use ““
//Creating a new java.lang.String object using the no-argument constructor wastes memory because the object so created will be functionally indistinguishable from the empty string constant ““.\u00A0 Java guarantees that identical string constants will be represented by the same String object.\u00A0 Therefore you should just use the empty string constant directly.
//String s1 = new String();
String s1 = ““;
s1 = m_parent.getPhysicalPath(si);
if(s1 == null)
{
throw new IllegalArgumentException(“There is no specified destination file (1140).“);
}
try
{
java.io.File file = new java.io.File(s1);
FileOutputStream fileoutputstream = new FileOutputStream(file);
fileoutputstream.write(m_parent.m_binArraym_startDatam_size);
fileoutputstream.close();
}
catch(IOException ioexception)
{
throw new SmartUploadException(“File can‘t be saved (1120).“);
}
}
public void fileToField(ResultSet resultsetString s) throws ServletExceptionIOExceptionSmartUploadExceptionSQLException
{
long l = 0L;
int i = 0x10000;
int j = 0;
int k = m_startData;
if(resultset ==
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-03-06 01:36 ewebeditor\
目录 0 2014-03-06 01:36 ewebeditor\admin\
文件 860 2014-03-06 01:29 ewebeditor\admin\default.jsp
文件 4621 2014-03-06 01:29 ewebeditor\admin\login.jsp
文件 251 2014-03-06 01:29 ewebeditor\admin\main.jsp
文件 2543 2014-03-06 01:29 ewebeditor\admin\menu.jsp
文件 258 2014-03-06 01:29 ewebeditor\admin\modilicense.jsp
文件 254 2014-03-06 01:29 ewebeditor\admin\modipwd.jsp
文件 4134 2014-03-06 01:29 ewebeditor\admin\private.css
文件 20771 2014-03-06 01:29 ewebeditor\admin\private.js
文件 252 2014-03-06 01:29 ewebeditor\admin\st
文件 253 2014-03-06 01:29 ewebeditor\admin\upload.jsp
目录 0 2014-03-06 01:36 ewebeditor\dialog\
文件 1764 2014-03-06 01:29 ewebeditor\dialog\about.htm
文件 5280 2014-03-06 01:29 ewebeditor\dialog\anchor.htm
文件 53676 2014-03-06 01:29 ewebeditor\dialog\art.htm
文件 12387 2014-03-06 01:29 ewebeditor\dialog\backimage.htm
文件 1 2014-02-23 00:31 ewebeditor\dialog\blank.htm
文件 31592 2014-03-06 01:29 ewebeditor\dialog\browse.htm
文件 10039 2014-03-06 01:29 ewebeditor\dialog\dialog.htm
文件 31816 2014-03-06 01:29 ewebeditor\dialog\dialog.js
文件 2654 2014-03-06 01:29 ewebeditor\dialog\dialog_ie6.js
文件 3689 2014-03-06 01:29 ewebeditor\dialog\emot.htm
文件 4122 2014-03-06 01:29 ewebeditor\dialog\eq.htm
文件 5393 2014-03-06 01:29 ewebeditor\dialog\fieldset.htm
文件 8538 2014-03-06 01:29 ewebeditor\dialog\file.htm
文件 6038 2014-03-06 01:29 ewebeditor\dialog\findreplace.htm
文件 6685 2014-03-06 01:29 ewebeditor\dialog\findreplacetext.htm
文件 20022 2014-03-06 01:29 ewebeditor\dialog\flash.htm
文件 4692 2014-03-06 01:29 ewebeditor\dialog\hr.htm
文件 6076 2014-03-06 01:29 ewebeditor\dialog\hyperli
............此处省略57个文件信息
- 上一篇:java课程设计通讯录管理软件源代码
- 下一篇:json2.6.0版本的jar包
评论
共有 条评论