Ò»¸öJavaµÄ×Ö·û´®³£ÓÃÀà
package com.tienway.util;
import java.util.ArrayList;
public class StringUtil
{
public static String ContextType1ToType2(String Type1Context)
{
if (Type1Context== null || Type1Context.length() == 0)
{
return "";
}
char[] c = Type1Context.toCharArray();
StringBuffer sb = new StringBuffer();
for (int i = 0; i < c.length; i++)
{
switch (c[i])
{
case '>':
sb.append(">");
break;
case '<':
sb.append("<");
break;
case ' ':
sb.append(" ");
break;
case '"':
sb.append(""");
break;
case '&':
sb.append("&");
break;
case '\n':
sb.append("<br>");
break;
default:
try
{
sb.append(c[i]);
} catch (Exception ex)
{
}
}
}
return sb.toString();
}
public static boolean isLetter(char c)
{
int k = 0x80;
return c / k == 0 ? true : false;
}
public static int length(String s)
{
char[] c = s.toCharArray();
int len = 0;
for (int i = 0; i < c.length; i++)
{
len++;
if (!isLetter(c[i]))
{
len++;
}
}
return len;
}
public static String replaceAll(String strin, String regex,
String replacement)
{
StringBuffer sb = new StringBuffer();
int rbegin = 0;
int rend = strin.indexOf(regex);
int rlen = regex.length();
while (rend >= 0)
{
sb.append(strin.su
Ïà¹ØÎĵµ£º
===================================TimerTask=======================================
import java.util.TimerTask;
import java.util.Calendar;
public class MyTask extends TimerTask
{
private ......
Java¶¯Ì¬´úÀíÀàλÓÚjava.lang.reflect°üÏ£¬Ò»°ãÖ÷ÒªÉæ¼°µ½ÒÔÏÂÁ½¸öÀࣺ
(1)Interface InvocationHandler£º¸Ã½Ó¿ÚÖнö¶¨ÒåÁËÒ»¸ö·½·¨
§public object invoke(Object obj,Method method, Object[] args)
ÔÚʵ¼ÊʹÓÃʱ£¬µÚÒ»¸ö²ÎÊýobjÒ»°ãÊÇÖ¸´úÀíÀ࣬methodÊDZ»´úÀíµÄ·½·¨£¬ÈçÉÏÀýÖеÄrequest()£¬argsΪ¸ ......
´Ójdk1.5¿ªÊ¼£¬JavaÖпªÊ¼Ö§³Ö·¶ÐÍÁË¡£·¶ÐÍÊÇÒ»¸öºÜÓÐÓõıà³Ì¹¤¾ß£¬¸øÎÒÃÇ´øÀ´Á˼«´óµÄÁé»îÐÔ¡£ÔÚ¿´ÁË¡¶javaºËÐıà³Ì¡·Ö®ºó£¬ÎÒСÓÐÊÕ»ñ£¬Ð´³öÀ´Óë´ó¼Ò·ÖÏí¡£
Ëùν·¶ÐÍ£¬Îҵĸоõ¾ÍÊÇ£¬²»Óÿ¼ÂǶÔÏóµÄ¾ßÌåÀàÐÍ£¬¾Í¿ÉÒÔ¶Ô¶ÔÏó½øÐÐÒ»¶¨µÄ²Ù×÷£¬¶ÔÈκζÔÏó¶¼ÄܽøÐÐͬÑùµÄ²Ù×÷¡£Õ ......
ÍƼöÒ»¿îJava·´±àÒëÆ÷£¬Ò²Ê¹ÓÃÁËͦ¾ÃµÄÁË£¬¸Ð¾õ»¹ÊǺܺÃÓ㬾ÍÄóöºÍ´ó¼Ò·ÖÏíһϡ£
Õâ¿î·´±àÒëÆ÷½Ð "Java Decompiler", ÓÉ Pavel Kouznetsov¿ª·¢£¬Ä¿Ç°×îа汾Ϊ0.2.5.
ËüÓÉ C++¿ª·¢£¬²¢ÇÒ¹Ù·½¿ÉÒÔÏÂÔØ windows¡¢linuxºÍÆ»¹ûMac OsÈý¸öƽ̨µÄ¿ÉÖ´ÐгÌÐò¡£
±¾ÈËÖ®ËùÒÔÈÏΪËü»¹²»´í£¬ÊÇÆäÓÐÏÂÃ漸¸ö¹ ......
1.È¥ÍøÕ¾http://files.zentus.com/sqlitejdbc/ÏÂÔØsqlitejdbc.¸ù¾Ý×ÔÒÑÐèÒª£¬ÏÂÔØsqlitejdbc.(sqlitejdbcÓÐÁ½¸ö°æ±¾£¬Ò»ÖÖÊÇpureµÄÒ»ÖÖÊÇnativeµÄ¡£nativeµÄËٶȿ졣Ëü·ÅÔÚ**-bin.tgzÀï¡£ÎÒϵľÍÊÇÕâÖÖsqlitejdbc-v056-bin.tgz£©
2. ÏÂÔغó½âѹsqlitejdbc-v056-bin.tg £¬ÓÐÒÔϼ¸¸öÎļþ£º libsqlitejdbc.so£¬sqlitejdbc.d ......