String轉(zhuǎn)byte 數(shù)組????
byte []buffer=new byte[1024];String str=new String(buffer);
這樣不就可以實(shí)現(xiàn)字節(jié)數(shù)組和字符串的轉(zhuǎn)換了么?
byte []buf= str.getBytes();
change String to byte.
posted on 2008-03-21 16:20 youngturk 閱讀(2738) 評(píng)論(0) 編輯 收藏 所屬分類: 個(gè)人隨筆總結(jié)