繁体中文
设为首页
加入收藏
当前位置:JSP技术首页 >> 资料/其它 >> 看看String类的构造方法

看看String类的构造方法

2005-02-15 08:00:00  作者:  来源:互联网  浏览次数:0  文字大小:【】【】【
简介:String public String(byte[] bytes, String enc) throws UnsupportedEncodingException Construct a new String by converting the specified array of bytes using the specified character encoding. The len...
关键字:方法 String

String

public String(byte[] bytes,

String enc)

throws UnsupportedEncodingException

Construct a new String by converting the specified array of bytes using the specified character encoding. The length of the new String is a function of the encoding, and hence may not be equal to the length of the byte array.

Parameters:

bytes - The bytes to be converted into characters

enc - The name of a supported character encoding

Throws:

UnsupportedEncodingException - If the named encoding is not supported

Since:

JDK1.1

责任编辑:admin
相关文章