import java.io.Serializable;
import java.text.DateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
/**
*
* @author tian
* 在线用户之间的聊天信息
*/
public class Message implements Serializable{
public String fromname;
public String toname;
public String msg;
public boolean flag;
byte[] data = null;//用于传送文件
int len; //信息会随着文件的长度而变化
public Message(){
}
public int getLen() {
return len;
}
public void setLen(int len) {
this.len = len;
}
public String toString() {
Date today = new Date();
Locale cnLocale = new Locale("zh", "CN");
DateFormat df = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, cnLocale);
return fromname+" 于"+df.format(today)+"说:"+"\n";
}
}
最近下载更多
微信网友_7004855557083136 LV1
2024年5月22日
cksndh LV4
2023年8月16日
fuyouou LV5
2023年6月29日
yuanchuang LV22
2023年2月14日
liys1234 LV9
2022年6月21日
微信网友_6003487859068928 LV5
2022年6月15日
微信网友_5989987974549504 LV5
2022年6月5日
17岁的孩子想糖吃 LV7
2021年12月31日
111111255 LV2
2021年12月24日
Aoifee LV4
2021年11月10日

最近浏览