Package | Description |
---|---|
java.io | |
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
Modifier and Type | Method and Description |
---|---|
String |
ByteArrayOutputStream.toString(String charsetName)
Converts the buffer's contents into a string by decoding the bytes using
the specified
charsetName . |
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(File file,
String csn)
Creates a new print stream, without automatic line flushing, with the
specified file and charset.
|
PrintStream(OutputStream out,
boolean autoFlush,
String encoding)
Creates a new print stream.
|
PrintStream(String fileName,
String csn)
Creates a new print stream, without automatic line flushing, with the
specified file name and charset.
|
PrintWriter(File file,
String csn)
Creates a new PrintWriter, without automatic line flushing, with the
specified file and charset.
|
PrintWriter(String fileName,
String csn)
Creates a new PrintWriter, without automatic line flushing, with the
specified file name and charset.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
String.getBytes(String charsetName)
Encodes this
String into 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
String by decoding the specified subarray of
bytes using the specified charset. |
String(byte[] bytes,
String charsetName)
Constructs a new
String by decoding the specified array of bytes
using the specified charset. |