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

public String ( byte [ ] bytes , int off , int len , java . lang . String enc ) throws java . io . UnsupportedEncodingException { this ( bytesToChars ( bytes , off , len , enc ) ) ; }
construct a new string by converting the specified subarray 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 subarray . bytes - the bytes to be converted into charactersoff - index of the first byte to convertlen - number of bytes to convertenc - the name of a character encoding - if the named encoding is not supported jdk1 . 1
