lucene
java_mail_test
这个作者很懒,什么都没留下…
展开
-
敏感词汇列表
阿2009-09-21 16:20:09 · 3390 阅读 · 0 评论 -
根据相对url得到绝对url
public static String makeAbsoluteURL(String link, String innerURL) { String retString = ""; try { URI base = new URI(link);//link对应当前页面地址 ...原创 2010-01-01 10:02:58 · 283 阅读 · 0 评论 -
url进行utf-8编码
public static String utf8encode(String text) { StringBuffer sb = new StringBuffer(); for (int i = 0; i < text.length(); i++) { char c = text.charAt(i); i...2009-12-15 10:36:24 · 1010 阅读 · 0 评论 -
HttpClient容易忽视的细节--连接关闭
Java代码 HttpClient client = new HttpClient(); HttpMethod method = new GetMethod("http://www.apache.org"); try { client.executeMethod(method); byte[] responseBody = null; r...2009-12-04 13:24:02 · 292 阅读 · 0 评论 -
Cookie 复习一下
Cookie.setMaxAge(int maxAge) : A positive value indicates that the cookie will expire after that many seconds have passed. Note that the value is the maximum age when the cookie will ...2009-11-13 23:57:02 · 128 阅读 · 0 评论 -
HttpClient 配合 Servlet 测试应用
GetMethod 默认是开启 followRedirects(true);的 , 所以不管服务器是使用sendRedirect 还是 forward , 客户端都会执行到跳转的页面。如果手动设置followRedirects(false) , 则sendRedirect()的页面 只能通过getMethod.getHeader("location").getValue()来获得 , 执行...2009-11-13 21:50:24 · 193 阅读 · 0 评论 -
GWT事件处理
package com.zly.client;import com.google.gwt.core.client.EntryPoint;import com.google.gwt.event.dom.client.BlurEvent;import com.google.gwt.event.dom.client.BlurHandler;import com.google....2009-10-25 18:34:53 · 235 阅读 · 0 评论 -
GWT中各种Panel
AbsolutePanelDIVComplexPanelPosition widgets absolutelyCellPanelTABLEComplexPanel[Abstract] Subclass your own cell panelsComplexPanel-Panel[Abstract] Subclass panels wi...2009-10-25 16:05:21 · 295 阅读 · 0 评论 -
将键值对生成网址url
public String getUrl(Map<String, String> map, String valueEnc) { if (null == map || map.keySet().size() == 0) { return ""; } StringBuffer url ...2009-09-22 20:29:23 · 741 阅读 · 0 评论 -
POI直接读取Office内容(docx, pptx , xlsx包括)
String text = ExtractorFactory.createExtractor(new File("2006080217595763310.xlsx")).getText();2009-09-21 19:54:57 · 495 阅读 · 0 评论 -
Lucene In Action 第二版 好书
好书啊2009-09-21 16:38:04 · 160 阅读 · 0 评论 -
同时从两个索引库中读取索引
IndexReader reader1 = IndexReader.open("directory1"); IndexReader reader2 = IndexReader.open("directory2"); MultiReader multiReader = new MultiReader(new IndexReader[]{reader1 , reader2}); ...2009-09-09 20:02:37 · 123 阅读 · 0 评论