摘要:
分析:http://www.myexception.cn/mysql/639943.html解决方法:http://blog.sina.com.cn/s/blog_3f78232201011o26.htmlpublic class Utf8Filter { public static void main(String[] args) throws Exception { System.out.println(filterMt4BytesUtf8(new String(new byte[] { (byte) 0x41 }, "utf-8")));System.out.prin 阅读全文
摘要:
var num = 10000for (var i = 0; i++; i < num) { eval("pp" + i + "=" + i);}(function(window, undefined){ var a1 = new Date(); for (var i = 0; i < num; i++) { document.write(window["pp" + i]); } var a2 = new Date(); alert(a2.getTime() - a1.getTime());})(window);(func 阅读全文
摘要:
http://demo.itextsupport.com/xmlworker/?snippetChooser=headers 阅读全文
摘要:
public String readDoc(File file) { StringBuffer buffer = new StringBuffer(); InputStream input = null; WordExtractor extractor = null; String[] paragraphs = null; try { input = new FileInputStream(file); extractor = new WordExtractor(input); ... 阅读全文
摘要:
/** * 获得最终访问地址 * * @param link * @return */ public String getRealLink(String link) { try { HttpContext httpContext = new BasicHttpContext(); HttpUtil.get(link, "iso-8859-1", httpContext); RedirectLocations redirectLocations = (RedirectL... 阅读全文
摘要:
e = request.getHeaderNames();String key;while(e.hasMoreElements()){ key = e.nextElement(); System.out.println(key+"="+request.getHeader(key));}System.out.println("Attribute....");e = request.getAttributeNames();while(e.hasMoreElements()){ key = e.nextElement(); System.out.println 阅读全文
摘要:
来自:http://www.thebuzzmedia.com/supported-values-for-suppresswarnings/ 阅读全文
摘要:
http://www.cnblogs.com/CopyPaster/archive/2012/04/27/2473179.html 阅读全文