| Package | Description |
|---|---|
| java.io | |
| java.lang |
| Constructor and Description |
|---|
InputStreamReader(InputStream is,
String enc)
Create an InputStreamReader that uses the named character encoding.
|
OutputStreamWriter(OutputStream os,
String enc)
Create an OutputStreamWriter that uses the named character encoding.
|
| 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.
|
byte[] |
String.getBytes(String enc)
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.
|
String(byte[] bytes,
int off,
int len,
String enc)
Construct a new String by converting the specified subarray of bytes using the specified character encoding.
|
String(byte[] bytes,
String enc)
Construct a new String by converting the specified array of bytes using the specified character encoding.
|
Copyright © 2024. All rights reserved.