String(byte[], int, int)
你用这个试试,它没有deprecated
你用这个试试,它没有deprecated
解决方案 »
- 无法将 adms.form.logic.Expression 中的 getValue() 应用于 (adms.form.excel.CReport)
- Java正则表达式...........大家帮忙看看....
- InputStream/OutputStream和Reader/Writer在实现结果上是一样的吧?那么他们不一样的地方在哪啊?
- char和int相加的问题
- 散100分,问简单的字符集转换问题。。新年快乐~
- 请教!!java里面日期类型数据的加减问题。
- 请问如何用gc()指定要释放的内存?
- 请问怎样获得数组的index?
- Netty作为server端的问题
- 请教,如何装载dev/lp0使程序可以对/dev/lp0进行读写?
- applet的中文问题
- 急急急!!请大侠帮忙!!先谢谢了
public String(byte[] bytes)Constructs a new String by decoding the specified array of bytes using the platform's default charset. The length of the new String is a function of the charset, and hence may not be equal to the length of the byte array.
The behavior of this constructor when the given bytes are not valid in the default charset is unspecified. The CharsetDecoder class should be used when more control over the decoding process is required.
Parameters:
bytes - the bytes to be decoded into characters