当前位置: 技术问答>java相关
如何将String 转换为byte[] ?!
来源: 互联网 发布时间:2015-03-14
本文导语: | getBytes public byte[] getBytes(String enc) throws UnsupportedEncodingException Convert this String into bytes according to the specified character encoding, storing the result into a new byte array.
|
getBytes
public byte[] getBytes(String enc)
throws UnsupportedEncodingException
Convert this String into bytes according to the specified character encoding, storing the result into a new byte array.
public byte[] getBytes(String enc)
throws UnsupportedEncodingException
Convert this String into bytes according to the specified character encoding, storing the result into a new byte array.