String(byte[] bytes, String charsetName) Constructs a new String by decoding the specified array of bytes using the specified charset.byte[] getBytes(String charsetName) Encodes this String into a sequence of bytes using the named charset, storing the result into a new byte array.
大虾讲的清楚些好吗?
把bstr数组里面取得的数据判断一下,如果是负数就加上256,然后强制转换成char,再print出来,否则就强制转换成char,再print出来。
Constructs a new String by decoding the specified array of bytes using the specified charset.byte[] getBytes(String charsetName)
Encodes this String into a sequence of bytes using the named charset, storing the result into a new byte array.