日期:2014-05-20 浏览次数:20752 次
private byte[] transName(String name) {
byte[] bytes_name = name.getBytes();
for (int i = 0; i < name.length(); i++) {
trans[i] = bytes_name[i];
}
return trans;
}
private String transResult(byte[] rets) {
StringBuffer retSB = new StringBuffer();
for (int i = 0; i < rets.length; i++) {
retSB.append((char) rets[i]);
}
return retSB.toString();
}