String constructors that take a java.nio.charset.Charset, charset name, or that use the platform's
default charset.
Allocates a new String constructed from a subarray of an array
of 8-bit integer values.
The offset argument is the index of the first byte of the
subarray, and the count argument specifies the length of the
subarray.
Each byte in the subarray is converted to a char as
specified in the method above.
ascii
| The bytes to be converted to characters | |
hibyte
| The top 8 bits of each 16-bit Unicode code unit | |
offset
| The initial offset | |
count
| The length |
IndexOutOfBoundsException
| If the offset or count argument is invalid |
String(byte[], int), 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