String -> byte
String s="aaa";
byte b[]=s.getBytes();//String转换为byte[]
byte -> String
String ss=new String(b);//byte b[]转换成String
获得String的字节数
int len=s.getBytes().length;//获得Stirng s的字节数
String s="aaa";
byte b[]=s.getBytes();//String转换为byte[]
String ss=new String(b);//byte b[]转换成String
int len=s.getBytes().length;//获得Stirng s的字节数