資源簡介
通過java 語言,利用socket,jdbc,實現的客戶端與服務器之間進行用戶注冊,登錄,以及上傳文件的功能

代碼片段和文件信息
package?lmq.entity;
import?java.io.Serializable;
public?class?File?implements?Serializable{
/**
?*?
?*/
private?static?final?long?serialVersionUID?=?1L;
private?long?fid;
private?String?fname;
private?byte[]?fcontent;
public?File()?{
super();
}
public?File(long?fid?String?fname?byte[]?fcontent)?{
super();
this.fid?=?fid;
this.fname?=?fname;
this.fcontent?=?fcontent;
}
public?long?getFid()?{
return?fid;
}
public?void?setFid(long?fid)?{
this.fid?=?fid;
}
public?String?getFname()?{
return?fname;
}
public?void?setFname(String?fname)?{
this.fname?=?fname;
}
public?byte[]?getFcontent()?{
return?fcontent;
}
public?void?setFcontent(byte[]?fcontent)?{
this.fcontent?=?fcontent;
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-04-03?14:11??MySocketUploader\
?????文件?????????309??2016-04-03?14:11??MySocketUploader\.classpath
?????文件?????????392??2016-04-03?13:08??MySocketUploader\.project
?????目錄???????????0??2016-04-03?14:11??MySocketUploader\bin\
?????文件?????????110??2016-04-03?14:11??MySocketUploader\bin\jdbc.properties
?????目錄???????????0??2016-04-03?14:11??MySocketUploader\bin\lmq\
?????目錄???????????0??2016-04-03?14:11??MySocketUploader\bin\lmq\entity\
?????文件????????1164??2016-04-03?14:11??MySocketUploader\bin\lmq\entity\File.class
?????文件????????1163??2016-04-03?14:11??MySocketUploader\bin\lmq\entity\User.class
?????目錄???????????0??2016-04-04?12:43??MySocketUploader\bin\lmq\service\
?????文件????????1577??2016-04-04?15:18??MySocketUploader\bin\lmq\service\FileService.class
?????文件????????1262??2016-04-04?15:24??MySocketUploader\bin\lmq\service\Test.class
?????文件????????2052??2016-04-04?13:59??MySocketUploader\bin\lmq\service\UserService.class
?????目錄???????????0??2016-04-03?15:53??MySocketUploader\bin\lmq\socket\
?????文件????????7444??2016-04-04?16:09??MySocketUploader\bin\lmq\socket\Client.class
?????文件????????1698??2016-04-04?11:08??MySocketUploader\bin\lmq\socket\Server.class
?????文件????????2842??2016-04-04?15:18??MySocketUploader\bin\lmq\socket\SocketThread.class
?????文件?????????508??2016-04-04?12:56??MySocketUploader\bin\lmq\socket\StartClient.class
?????目錄???????????0??2016-04-04?11:04??MySocketUploader\bin\lmq\util\
?????文件????????1267??2016-04-04?11:08??MySocketUploader\bin\lmq\util\CommandTransfer.class
?????文件????????1999??2016-04-03?14:56??MySocketUploader\bin\lmq\util\JdbcUtils.class
?????目錄???????????0??2016-04-03?14:11??MySocketUploader\lib\
?????文件??????703265??2016-04-03?14:11??MySocketUploader\lib\mysql-connector-java-5.1.6-bin.jar
?????目錄???????????0??2016-04-03?13:28??MySocketUploader\src\
?????文件?????????110??2016-04-03?14:11??MySocketUploader\src\jdbc.properties
?????目錄???????????0??2016-04-03?13:09??MySocketUploader\src\lmq\
?????目錄???????????0??2016-04-03?13:13??MySocketUploader\src\lmq\entity\
?????文件?????????783??2016-04-03?13:15??MySocketUploader\src\lmq\entity\File.java
?????文件?????????790??2016-04-03?13:15??MySocketUploader\src\lmq\entity\User.java
?????目錄???????????0??2016-04-04?12:43??MySocketUploader\src\lmq\service\
?????文件?????????895??2016-04-04?15:18??MySocketUploader\src\lmq\service\FileService.java
............此處省略10個文件信息
評論
共有 條評論