| Package | Description | 
|---|---|
| java.io | Contains Input/Output streams communication classes. | 
| java.lang | Contains core language classes. | 
| Constructor and Description | 
|---|
| InputStreamReader(InputStream in,
                 String charsetName)Creates an InputStreamReader that uses the named charset. | 
| OutputStreamWriter(OutputStream out,
                  String charsetName)Creates an OutputStreamWriter that uses the named charset. | 
| PrintStream(OutputStream out,
           boolean autoFlush,
           String encoding)Creates a new print stream. | 
| Modifier and Type | Method and Description | 
|---|---|
| byte[] | String. getBytes(String charsetName)Encodes this  Stringinto a sequence of bytes using the named charset, storing the result
 into a new byte array. | 
| Constructor and Description | 
|---|
| String(byte[] bytes,
      int offset,
      int length,
      String charsetName)Constructs a new  Stringby decoding the specified subarray of bytes using the specified
 charset. | 
| String(byte[] bytes,
      String charsetName)Constructs a new  Stringby decoding the specified array of bytes using the specified
 charset. |