public String(byte[] bytes,java.lang.String enc) throws java.io.UnsupportedEncodingException {
  this(bytesToChars(bytes,0,bytes.length,enc));
}

public String ( byte [ ] bytes , java . lang . String enc ) throws java . io . UnsupportedEncodingException { this ( bytesToChars ( bytes , 0 , bytes . length , enc ) ) ; }
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 . bytes - the bytes to be converted into charactersenc - the name of a supported character encoding - if the named encoding is not supported jdk1 . 1
