资源简介
NULL
博文链接:https://lingf.iteye.com/blog/1108467

代码片段和文件信息
/*jadclipse*/// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) radix(10) lradix(10)
// Source File Name: File.java
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;
// Referenced classes of package com.jspsmart.upload:
// SmartUploadException SmartUpload
public class File
{
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 destFilePathName)
throws SmartUploadException IOException
{
saveAs(destFilePathName 0);
}
public void saveAs(String destFilePathName int optionSaveAs)
throws SmartUploadException IOException
{
String path = new String();
path = m_parent.getPhysicalPath(destFilePathName optionSaveAs);
if(path == null)
throw new IllegalArgumentException(“There is no specified destination file (1140).“);
try
{
java.io.File file = new java.io.File(path);
file.createNewFile();
try
{
FileOutputStream fileOut = new FileOutputStream(file);
fileOut.write(m_parent.m_binArray m_startData m_size);
fileOut.close();
}
catch(Exception e)
{
throw new IllegalArgumentException(“Path‘s name is invalid or does not exist (1135).“);
}
}
catch(IOException e)
{
throw new SmartUploadException(“File can‘t be saved (1120).“);
}
}
public void fileToField(ResultSet rs String columnName)
throws SQLException SmartUploadException IOException ServletException
{
long numBlocks = 0L;
int blockSize = 65536;
int leftOver = 0;
int pos = 0;
if(rs == null)
throw new IllegalArgumentException(“The RecordSet cannot be null (1145).“);
if(columnName == null)
throw new IllegalArgumentException(“The columnName cannot be null (1150).“);
if(columnName.length() == 0)
throw new IllegalArgumentException(“The columnName cannot be empty (1155).“);
numBlocks = BigInteger.valueOf(m_size).divide(BigInteger.valueOf(blockSize)).longValue();
leftOver
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2011-06-28 19:55 源码\
目录 0 2011-06-28 19:55 源码\com\
目录 0 2011-06-28 19:55 源码\com\jspsmart\
目录 0 2011-06-28 19:55 源码\com\jspsmart\upload\
文件 7577 2011-06-28 14:28 源码\com\jspsmart\upload\File.java
文件 2067 2011-06-28 14:29 源码\com\jspsmart\upload\Files.java
文件 2350 2011-06-28 14:29 源码\com\jspsmart\upload\Request.java
文件 27351 2011-06-28 19:50 源码\com\jspsmart\upload\SmartUpload.java
文件 684 2011-06-28 14:30 源码\com\jspsmart\upload\SmartUploadException.java
相关资源
- java 毕业设计 进销存管理系统 源码
- Android手机工具ADB.exe
- java图片浏览器跨平台运行程序与源码
- 微博系统(Java源码,servlet+jsp),适
- 美食天下项目Android版源码和Web版源码
- 基于Java的酒店管理系统源码(毕业设
- Android分区工具包
- u-blox_Android_GNSS_Driver_v3.10驱动源码+中
- 个人根据Android移动开发案例详解手写
- 基于JSP的学生宿舍管理系统(源码 数
- mysql jsp网站源码下载
- java access 仓库管理系统 源码
- java实现的svn统计修改代码行数完整源
- 即时通讯系统JAVA源码
- Java记事本【源代码 实验报告】
- java简单的购物车实例程序
- Java版航空订票系统源码
- java GUI版汉诺塔源码
- Android手机连连看游戏源码
- 搜索引擎的研究与实现Java附源码
- java 原创 坦克大战 源码 带有详细注释
- jsp与SQL Server数据库实现的客户注册登
- java实现POS系统源码
- java多人五子棋源码
- JAVA计算器实验报告与源码
- java做的人事档案管理系统
- 贪吃蛇(java 源码 eclipse项目)
- 自动出题系统(java 课程设计)
- java制作360度全景页面的源码和脚本
- 进制转换器(java)
评论
共有 条评论