/** * ClassName: DataBuffer.java * Author: qiujy * CreateTime: 2009-4-15 * EMAIL: qjyong@gmail.com * Copyright 2009 ++YONG All rights reserved. */ package client; import java.awt.Dimension; import java.awt.Toolkit; import java.io.*; import java.net.*; import java.util.*; import client.model.entity.OnlineUserListModel; import common.model.entity.User; /** 客户端数据缓存 */ public class DataBuffer { /** 当前客户端的用户信息 */ public static User currentUser; /** 在线用户列表 */ public static List<User> onlineUsers; /** 当前客户端连接到服务器的套节字 */ public static Socket clientSeocket; /** 当前客户端连接到服务器的输出流 */ public static ObjectOutputStream oos; /** 当前客户端连接到服务器的输入流 */ public static ObjectInputStream ois; /** 服务器配置参数属性集 */ public static Properties configProp; /** 当前客户端的屏幕尺寸 */ public static Dimension screenSize; /** 本客户端的IP地址 */ public static String ip ; /** 用来接收文件的端口 */ public static final int RECEIVE_FILE_PORT = 6666; /** 在线用户JList的Model */ public static OnlineUserListModel onlineUserListModel; static{ screenSize = Toolkit.getDefaultToolkit().getScreenSize(); //加载服务器配置文件 configProp = new Properties(); try { ip = InetAddress.getLocalHost().getHostAddress(); configProp.load(Thread.currentThread() .getContextClassLoader() .getResourceAsStream("serverconfig.properties")); } catch (IOException e) { e.printStackTrace(); } } private DataBuffer(){} }

WenMeng LV9
2024年12月30日
13133117021 LV5
2024年12月24日
矿泉水 LV30
2024年10月8日
你们的代码都是我的了 LV16
2024年4月29日
等风来2020 LV3
2023年12月10日
buhuia LV4
2023年6月9日
yangguang LV8
2022年12月28日
dongandmin LV8
2022年12月10日
caohanren LV11
2022年12月9日
daidin LV11
2022年7月20日

gfbuhbaduiei
1月9日
暂无贡献等级
WenMeng LV9
2024年12月30日
13133117021 LV5
2024年12月24日
MQ-EQW
2024年12月20日
暂无贡献等级
葫芦马戏 LV1
2024年12月11日
Sotouch LV15
2024年12月9日
Wq1008611
2024年11月28日
暂无贡献等级
3263394665 LV9
2024年8月31日
interface LV22
2024年8月10日
windy079
2024年7月1日
暂无贡献等级