Trie 树,又称字典树,单词查找树。它来源于retrieval(检索)中取中间四个字符构成(读音同try)。用于存储大量的字符串以便支持快速模式匹配。主要应用在信息检索领域。Trie 有三种结构: 标准trie (standard trie)、压缩trie、后缀trie(suffix trie)。...
分类:
其他好文 时间:
2014-09-05 09:56:01
阅读次数:
197
转:http://www.cnblogs.com/top5/archive/2012/02/16/2354517.htmlpublic void testUpload(){ try{ String srcUrl = "/sdcard/"; //路径 ...
分类:
移动开发 时间:
2014-09-04 14:41:19
阅读次数:
261
//关于http 需要两个jar包 httpclient-4.0.jar httpcore-4.0.1.jar
private static final HttpClient httpClient = new DefaultHttpClient();
try {
//获得密匙库
KeyStore trustStore = KeyStore.getInstance("jks");
...
分类:
编程语言 时间:
2014-09-04 09:45:28
阅读次数:
347
Atitit.java 异常的使用总结最佳实践 Vo8f
1. 为什么使用异常 1
2. 用throw抛出一个异常到catch子句中与通过函数调用传递一个参数两者基本相同。 2
3. S E H的主要动机 2
4. RuntimeException跟checked Exception 2
5. 要不要使用checked Exception 3
6. Exception业务流程控制...
分类:
编程语言 时间:
2014-09-04 00:14:57
阅读次数:
369
/// /// 功能:将Canvas画布内容保存为jpg格式图片 /// 作者:GYS | 日期:2013年9月9日 /// /// /// private void SaveAsJpeg(string filePath, Canvas pixBox) { try { RenderTarge...
分类:
其他好文 时间:
2014-09-03 22:37:47
阅读次数:
259
转义符表This all of the escape sequences Ruby supports. You may not use many of these, but memorize their format and what they do anyway. Try them out in ...
分类:
其他好文 时间:
2014-09-03 22:37:17
阅读次数:
222
以前都是使用百度API在软件里面做一个百度地图出来这样感觉既浪费时间又浪费精力,这里就教大家直接使用Intent的方式调用手机上安装的百度地图客户端,访问我们所需要的路径规划等, //调起百度地图客户端
try {
...
分类:
移动开发 时间:
2014-09-03 19:58:57
阅读次数:
413
一 ,调用无参方法: import java.lang.reflect.Method; public class InvokeSayJapanDemo { public static void main(String[] args) { Class c1=null; try { c1=Class.f...
分类:
其他好文 时间:
2014-09-03 19:33:47
阅读次数:
180
如图,Android上新开的线程如想更新UI,需要重新跳到主线程中才能操作,以下是老外给出的几种方案,大家多多学习下.
1通过UI控件post一个runnable子类:
private void loadIcon() {
new Thread(new Runnable() {
@Override
public void run() {
try {
Th...
分类:
移动开发 时间:
2014-09-03 18:10:07
阅读次数:
241
Citrix Xen sucks!When u try to install linux stuff on its Xen servers, u will get an error complaining errors like below:'......the bootloader for thi...
分类:
系统相关 时间:
2014-09-03 12:58:56
阅读次数:
270