摘要: 实体引用 字符&amp; &&lt; <&gt; >&quot; "&apos; <?xml version="1.0" encoding="UTF-8"?><root> <attachment id="638a89f6a7644f7c8516ab8fe1bb8d0e" attachType="remotefile"> <fileName var_type="String" /> 阅读全文
posted @ 2013-06-20 17:29 jshen 阅读(354) 评论(0) 推荐(0) 编辑
摘要: SimpleDateFormat sdf = new SimpleDateFormat("M月dd日"); Calendar calendar = Calendar.getInstance(); //得到日历 calendar.setTime(calendar.getTime());//把当前时间赋给日历 calendar.add(Calendar.DAY_OF_MONTH, -1); //设置为前一天 Date dBefore = calendar.getTime(); //得到前一天的时间 阅读全文
posted @ 2013-06-20 16:50 jshen 阅读(135) 评论(0) 推荐(0) 编辑
摘要: package com.test;import java.io.BufferedReader;import java.io.InputStream;import java.io.InputStreamReader;import java.io.Reader;import java.net.HttpURLConnection;import java.net.URL;public class Spider { public static void main(String[] args) { String url="http://www.cnblogs.com/xingyun/archiv 阅读全文
posted @ 2013-06-20 16:49 jshen 阅读(473) 评论(0) 推荐(0) 编辑