07 2010 檔案

               摘要: 通常許多web資源是面向登錄用戶的,如果我們想利用程序自動獲取,則必須要通過程序登錄之後才能實現。java本身提供的標準庫也可以實現客戶端的登錄,但是卻不能自動管理服務器返回的cookie,必須手動管理。這個是十分麻煩和繁瑣的。幸好有APACHE 的 HTTPCLIENT,我們不必在擔心如何管理cookie。所以用hc登錄,獲取資源都是十分簡單和方便的。在這裡用一段源碼記錄如何使用hc等錄一個website,以及如何通過代理登錄和通過代理訪問頁面。  閱讀全文

          posted @ 2010-07-29 10:54 祝嘉 閱讀(448) | 評論 (0)  編輯 |

               摘要: 使用Apache的HTTPCLIENT獲取網頁的內容  閱讀全文

          posted @ 2010-07-28 20:27 祝嘉 閱讀(328) | 評論 (0)  編輯 |

               摘要: The PatternLayout is by far the most widely used log4j layout. It formats logging events according to a conversion pattern specified by the user. Conversion patterns are composed of literal text and conversion specifiers. Literal text is output as is. Conversion specifiers consist of the % character followed by an optional format modifier and a mandatory conversion character. For example, %-5p [%t]: %m%n is a conversion pattern composed of a priority (a.k.a. level) conversion specifier followed   閱讀全文

          posted @ 2010-07-28 18:50 祝嘉 閱讀(554) | 評論 (0)  編輯 |

               摘要: export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on'  閱讀全文

          posted @ 2010-07-11 23:51 祝嘉 閱讀(625) | 評論 (0)  編輯 |

               摘要: ubuntu下的java中文字體文件名為uming.ttc,而不是通用的uming.ttf,解決方法就是為uming.ttc建一個軟鏈接。
          $cd /usr/share/fonts/truetype/arphic/
          $sudo ln -s uming.ttc uming.ttf  閱讀全文

          posted @ 2010-07-10 09:35 祝嘉 閱讀(517) | 評論 (0)  編輯 |

          主站蜘蛛池模板: 澳门| 涞源县| 陕西省| 瑞金市| 通道| 东乡县| 长宁县| 彭阳县| 镇赉县| 崇阳县| 遂溪县| 九江县| 云梦县| 获嘉县| 绥滨县| 胶南市| 盱眙县| 东乡县| 岢岚县| 台北市| 措勤县| 兖州市| 固始县| 广宗县| 罗平县| 淮阳县| 府谷县| 漳平市| 乃东县| 南昌县| 四会市| 贵德县| 诸暨市| 浠水县| 定西市| 临西县| 固安县| 乌兰察布市| 平遥县| 河曲县| 阿尔山市|