java base64±àÂëºÍ½âÂë
import java.io.IOException;
public class test {
/**
* ±àÂë
* @param filecontent
* @return String
*/
public static String encode(byte[] bstr){
return new sun.misc.BASE64Encoder().encode(bstr);
}
/**
* ½âÂë
* @param filecontent
* @return string
*/
public static byte[] decode(String str){
byte[] bt = null;
try {
sun.misc.BASE64Decoder decoder = new sun.misc.BASE64Decoder();
bt = decoder.decodeBuffer( str );
} catch (IOException e) {
e.printStackTrace();
}
return bt;
}
/**
* @param args
*/
public static void main(String[] args) {
test te = new test();
String aa = "¸ü¶à¸ü¶à";
aa = te.encode(aa.getBytes());
System.out.println("----aa:"+aa);
String str = aa;
String str2 = new String(te.decode(str));
System.out.println("-----str2:"+str2);
}
}
Ïà¹ØÎĵµ£º
ÏîÄ¿ÖÐÓеÄÎļþ¼ÐÔÀ´ÊÇsvn°æ±¾¿ØÖƵģ¬ÏÖÔÚ²»Ïë¿ØÖÆÁË£¬¾ÍÏñ°ÑÕâ¸öÎļþ¼Ð´«¸ø±ðÈË»òÕß×Ô¼º±¸·Ý£¬µ«ÊÇ¿´µ½ÄÇô¶à.svnÎļþ¼ÐʵÔÚ²»Êæ·þ£¬Ð´ÁËÏÂÃæµÄ¼òµ¥³ÌÐòÓÃÀ´É¾³ýÕâЩÎļþ£¬ÒÔºóÐèҪɾ³ýµÄ»°£¬ÉèÖúÃÎļþ¼Ð·¾¶ºÍҪɾ³ýµÄÎļþ¼ÐÃû×ÖÅÜһϾÍÐÐÁË¡£
import java.io.File;
/*
* To change this template, choose Tools ......
Ò»¡¢Ëã·¨ºÍÊý¾Ý½á¹¹
¡ïʲôʱºò¸ÃÓÃÊý×éÐÍÈÝÆ÷¡¢Ê²Ã´Ê±ºò¸ÃÓÃÁ´±íÐÍÈÝÆ÷£¿
¡ïʲôÊÇÉ¢Áк¯Êý£¿HashMapµÄʵÏÖÔÀíÊÇʲô£¿
¡ïʲôÊǵݹ飿Èç¹ûÄãÒÔǰ´ÓÀ´Ã»Ð´¹ýµÝ¹éº¯Êý£¬³¢ÊÔ×Åдһ¸ö£¨±ÈÈçÓõݹ麯Êý½øÐÐĿ¼Ê÷±éÀú£©¡£
¡ïʲôÊÇËã·¨¸´ÔÓ¶È£¿
¡ïÄãÊÇ·ñÀí½â¿Õ¼ä»»Ê±¼äµÄ˼Ï룿
¡ïдһ¸öÕë¶ÔÕûÊýÊý×éµÄðÅÝÅÅÐòº¯Êý£¬¿ ......
EJB: Enterprise JavaBeans ÆóÒµJavaBean×é¼þ
IDL: Interface Definition Language ½Ó¿Ú¶¨ÒåÓïÑÔ
J2EE CA£ºJ2EE Connector Architecture J2EE Á¬½ÓÆ÷¼Ü¹¹
JAAS : The Java Authenticat ......
sqliteÊý¾Ý¿âµÚÈý·½javaÀ©Õ¹°üÏÂÔØµØÖ·£ºhttp://www.zentus.com/sqlitejdbc/
ÓÐ2¸ö°ü£¬Ò»¸öÊÇnested£¨Ç¶ÈëʽµÄ£©£¬Ò»¸öÊÇnative(±¾µØµÄ)¡£
Çø±ðÔÚÓÚ:nested ²»ÐèÒª¶îÍâµÄdllÎļþ£¬µ«ÊÇËÙ¶ÈÂý¡£nativeÐèÒªÒ»¸ö¶îÍâµÄdllÎļþ£¬ËٶȺܿ졣
1.ʹÓÃnested°ü£ºsqlitejdbc-v037-nested.jar
java´úÂ룺
java ´úÂë
packa ......
ÓÉÓÚjava interfaceÖÐÉùÃ÷µÄ×Ö¶ÎÔÚ±àÒëʱ»á×Ô¶¯¼ÓÉÏstatic finalµÄÐÞÊηû£¬¼´ÉùÃ÷Ϊ³£Á¿¡£Òò¶øinterfaceͨ³£ÊÇ´æ·Å³£Á¿µÄ×î¼ÑµØµã¡£È»¶øÔÚjavaµÄʵ¼ÊÓ¦ÓÃʱȴ»á²úÉúһЩÎÊÌâ¡£
ÓÉÓÚjava interfaceÖÐÉùÃ÷µÄ×Ö¶ÎÔÚ±àÒëʱ»á×Ô¶¯¼ÓÉÏstatic finalµÄÐÞÊηû£¬¼´ÉùÃ÷Ϊ³£Á¿¡£Òò¶øinterfaceͨ³£ÊÇ´æ·Å³£Á¿µÄ×î¼ÑµØµã¡£È»¶øÔÚjavaµÄ ......