基于文字水印的谈判系统设计与实现_毕业论文(编辑修改稿)内容摘要:
public void insertString(int offs, String str, AttributeSet a) throws BadLocationException{ if(getLength() == maxSize){ return。 } if(getLength() + () maxSize){ int i = maxSize getLength()。 str = (0, i)。 } if((str).matches()){ 淮阴师范学院毕业论文(设计) 15 (offs, str, a)。 } } } /** * 发送登陆信息 */ private void sendLoginMessage(){ char[] pw = ()。 String userId= (String)()。 String password = new String(pw)。 if (!()amp。 amp。 !()){ if(loginHandle != null){ ((userId).intValue(), password)。 } } else { (false)。 (this, html用户号码和密码不能为空 br用户号码只能是 110位数字br密码必须是字符和数字 /html, 登录消息 , )。 ()。 (true)。 } } /** * 清除文本内容 */ public void clearTextContent(){ (1)。 ()。 } /** * 从 txt文本文档中读取历史登陆的账号信息 * @return */ public VectorString readUserIDFromFile(){ try { BufferedReader br=new BufferedReader(new FileReader(Info//))。 String msg = null。 while((msg = ()) != null){ String temp = ()。 淮阴师范学院毕业论文(设计) 16 if (!()){ if ( !(temp)){ (temp)。 } } } } catch (Exception e) { ()。 } return userID。 } } 聊天界面及聊天接口代码 /** * @() 2020226 * Copy Right Information : 淮阴师范学院 计算机科学与技术学院(软件工程) * @author : 刘 超(计科 0903 学号: 210910018) * Project : 基于文字水印谈判系统的设计与实现 * JDK version used : * Comments : java类 * Environment : Win7/Win8/Win XP * Version : * Sr Date Modified By : 淮阴师范学院毕业论文(设计) 17 * null **/ package。 import resource.*。 /** * 客户端的接口 202027 * * @author 刘 超 * @version * @since (建议 ) */ public interface IClient { /** * 发送信息包 * @param packet */ public void sendChatMessage(MessagePacket packet)。 /** * 清空函数 */ public void clear()。 } 数据库操作函数及代码实现 /** * @() 2020226 * Copy Right Information : 淮阴师范学院 计算机科学与技术学院(软件工程) * @author : 刘 超(计科 0903 学号: 210910018) * Project : 基于文字水印谈判系统的设计与实现 * JDK version used : * Comments : java类 * Environment : Win7/Win8/Win XP * Version : * Sr Date Modified By : * null **/ package server。 import。 import。 import。 import。 import。 import。 import。 淮阴师范学院毕业论文(设计) 18 import。 import resource.*。 /** * 数据库操作类 * @author 刘 超 * */ public class BaseDaoApp implements IBaseDao { private Connection con = null。 public static final String DRIVER=。 public static final String URL=jdbc:jtds: public static final String USER_NAME=sa。 public static final String USER_PASS=123。 private Connection getConnection() { try{ (DRIVER)。 con=(URL,USER_NAME,USER_PASS)。 }catch(Exception e){ ()。 } return con。 } public void closeAll(Connection con,Statement st,ResultSet rs){ try{ if(con!=null){()。 } if(st!=null){()。 } if(rs!=null){()。 } }catch(Exception e){ ()。 } } public UserInfo login(UserInfo user) { int userID = ()。 String password = ()。 String queryString = select * from t_userinfo where userID =? and password=?。 Connection con = ()。 ResultSet rs。 UserInfo userinfo = null。 try { PreparedStatement ps = (queryString)。 (1, userID)。 淮阴师范学院毕业论文(设计) 19 (2, password)。 rs = ()。 while (()) { int ID = (1)。 String nickName = (2)。 String pwd = (3)。 String sex = (4)。 int age = (5)。 int departID = (6)。 String phone = (7)。 String = (8)。 String name = (9)。 String iconPath = (10)。 String address = (11)。 userinfo = new UserInfo(ID, nickName, pwd, sex, age, departID, phone, , name, iconPath, address)。 } return userinfo。 } catch (SQLException e) { ()。 } return null。 } public VectorDepartment getDepartments() { String queryStr = select * from t_department。 Connection con = ()。 ResultSet rs。 VectorDepartment department = new VectorDepartment()。 try { PreparedStatement ps = (queryStr)。 rs = ()。 while (()) { int departID = (1)。 String departName = (2)。 String departDepict = (3)。 Department depart = new Department()。 (departID)。 (departName)。 (departDepict)。 (depart)。 } 淮阴师范学院毕业论文(设计) 20 return department。 } catch (SQLException e) { ()。 } return null。 } public VectorUserInfo onLineUsers(VectorInteger userID) { int size = ()。 (onLineUsers count + size)。 Connection con = ()。 ResultSet rs。 PreparedStatement ps。 VectorUserInfo onLineUsers = new VectorUserInfo()。 int index = 0。 while (size 0) { String queryString = select * from t_userinfo where userID = ?。 try { ps = (queryString)。 (1, (index))。 rs = ()。 while (()) { int ID = (1)。 String nickName = (2)。 String pwd = (3)。 String sex = (4)。 int age = (5)。 int departID = (6)。 String phone = (7)。 String = (8)。 String name = (9)。 String iconPath。基于文字水印的谈判系统设计与实现_毕业论文(编辑修改稿)
相关推荐
( 3) Web 服务器接收到请求之后,会发送一个状态行。 ( 4) Web 服务器断开 TCP 连接。 步骤( 2)请求行中包含了下列的信息: ( 1)方法,如下图 所示: 图 HTTP 请求报 文 ( 2)统一资源定界符 URL:用于指明要下载的 Web 对象的位置。 ( 3) HTTP 的版本号,现在版本主要为 . 步骤( 3)响应如图 所示: 图 HTTP 响应报文 IP 协议 IP
............................................................................................................... 34 致 谢 ................................................................................
秉承了清晰化一的基于无线传感器网络的灌溉系统设计 6 风格,其设计宗旨是对于一个固定的问题,只要寻求一种最好的解决方式就可以了。 更是在脚本语言的 实现方面,达到了用法简洁、使用高效的效果。 Visual Basic 语言: BASIC 语言是高阶程序式的一种语言,是一种为初学者设计的程序设计语言。 它在编写完成后不需要经由编译和链接等过程操作就可以直接进行运行
4A--部门职责备份2 21 世纪素材资源平台 中国最大素材资料平台 160984104岗 位 职 责 制 度一 . 目 的为 了 明 确 公 司 内 部 各 部 门 各 类 人 员 的 职 责 和 权 限 , 理 顺 各 方 面 的 关 系 , 达 到 各 司 其 责。 以 利 于 按质 量 要 求 完 成 各 项 任 务 , 特 制 定 本 职 责。 二 . 适 用 范 围本 文 对 各 部
月,新浪微博上线,并迅速成长为中国最具影响力的微博,其后各大门户网站微博纷纷如今,新浪微博成为众多网民生活中不可缺少的一部分。 用户可以通过网页、 WAP 页面、手机短信彩信、手机客户端 (包括 NOKIAS60 系统、 IOS 系统、谷歌 Android 系统、 Windows Phone 系统等发布成立,中国真正进入微博时代。 消息或者上传图片。 根据 20xx 年官方公布数据显示
) 选10z=15 9z=85 分度圆直径 d=zm 山东建筑大学汽车设计课程设计说明书 4 得9D= 170mm 10D=30mm 正常齿制,模数大于 1mm 的齿轮,齿顶高系数为 1,顶隙系数为 齿顶高:ah=*m=2mm 齿根高:f=)( ** cham= 齿宽:直齿 b=ckm 取为 斜齿 b=cm 取为 取为 6,则 b=12mm 修正中心距 A=2zm=100mm