2017年4月25日

摘要: public class DOM4JPares3 { Document doc = null; public void getDocument() { SAXReader sax = new SAXReader(); try { doc = sax.read("收藏信息.xml"); } catch 阅读全文
posted @ 2017-04-25 00:01 mliang 阅读(225) 评论(0) 推荐(0) 编辑

2017年4月22日

摘要: public class XMLParse3 { // 1.创建解析器工厂 DocumentBuilerFactory // 2.创建解析器 (由解析工厂创建) 即为DocumentBuilder对象 // 3.由解析器对象指定XML文件进行解析, 构造DOM树,创建Document对象 // 4. 阅读全文
posted @ 2017-04-22 22:14 mliang 阅读(273) 评论(0) 推荐(0) 编辑

2017年4月16日

摘要: public class Udp1 { /** * @param args */ public static void main(String[] args) { //准备了一个空包 byte[] infos=new byte[1024]; DatagramPacket dp=new Datagra 阅读全文
posted @ 2017-04-16 20:35 mliang 阅读(360) 评论(0) 推荐(0) 编辑

2017年4月12日

摘要: public class LoginThread extends Thread{ Socket socket=null; public LoginThread(Socket socket){ this.socket=socket; } public void run(){ try { //打开输入/ 阅读全文
posted @ 2017-04-12 17:55 mliang 阅读(86) 评论(0) 推荐(0) 编辑

导航