Snowfun

导航

 

2011年1月21日

摘要: 通過JAVA API顯示本機IP地址和網絡上任何一臺可以訪問到的服務器的IP地址import java.io.IOException;import java.net.InetAddress;import java.net.UnknownHostException;public class GetIP { private InetAddress LocalIP=null; private InetAddress ServerIP=null; public static void main(String args[]){ GetIP mytest=new GetIP(); System.out. 阅读全文
posted @ 2011-01-21 14:07 Snowfun 阅读(253) 评论(0) 推荐(0) 编辑
 
摘要: import java.io.BufferedInputStream;import java.io.FileOutputStream;import java.io.FileWriter;import java.io.IOException;import java.io.PrintWriter;import java.net.URL;import org.w3c.tidy.Tidy;public class HTML2XML { private String url; private String outFileName; private String errOutFileName; publ 阅读全文
posted @ 2011-01-21 10:58 Snowfun 阅读(1138) 评论(0) 推荐(0) 编辑