| Package | Description |
|---|---|
| java.lang | |
| java.nio.charset |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
String.getBytes(Charset charset)
Convert this String into bytes according to the specified character encoding, storing the result into a new byte array.
|
| Constructor and Description |
|---|
String(byte[] bytes,
Charset charset)
Construct a new String by converting the specified array of bytes using the specified character encoding.
|
| Modifier and Type | Method and Description |
|---|---|
static Charset |
Charset.forName(String name) |
| Modifier and Type | Method and Description |
|---|---|
int |
Charset.compareTo(Charset another) |
Copyright © 2025. All rights reserved.