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
看看String类的构造方法-JSP教程,Java基础
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 看看String类的构造方法-JSP教程,Java基础
相关推荐
-      J2ME中的时间处理方法
-      J2ME播放声音流程简介
-      J2ME开发之手机键盘使用注意问题
-      J2ME 记录管理存储
-      MVC模式在j2me项目中的应用(二)
-      MVC模式在j2me项目中的应用(一)
-      J2ME中使用记录存储系统(RMS)存储信息
-      J2ME与MIDP开发(1)
