String constructors that take a java.nio.charset.Charset, charset name, or that use the platform's
default charset.
Allocates a new String containing characters constructed from
an array of 8-bit integer values. Each character cin the
resulting string is constructed from the corresponding component
b in the byte array such that:
c == (char)(((hibyte & 0xff) << 8)
| (b & 0xff))
ascii
| The bytes to be converted to characters | |
hibyte
| The top 8 bits of each 16-bit Unicode code unit |
String(byte[], int, int, java.lang.String), String(byte[], int, int, java.nio.charset.Charset), String(byte[], int, int), String(byte[], java.lang.String), String(byte[], java.nio.charset.Charset), String(byte[])
Diagram: String