Package | Description |
---|---|
java.io |
Provides classes for input and output through data streams.
|
java.lang |
MID Profile Language Classes included from Java 2 Standard
Edition.
|
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(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,
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 (c) 1990, 2012, Oracle and/or its affiliates. All rights reserved.