| Package | Description |
|---|---|
| java.io |
Provides for system input and output through data streams, serialization and the file system.
|
| java.lang |
Provides classes that are fundamental to the design of the Java programming language.
|
| java.net |
Provides the classes for implementing networking applications.
|
| java.util |
Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
|
| java.util.logging |
Provides the classes and interfaces of the Java
TM 2 platform's core logging facilities.
|
| javax.xml.bind.helpers |
JAXB Provider Use Only: Provides partial default implementations for some of the
javax.xml.bind interfaces.
|
| Modifier and Type | Method and Description |
|---|---|
String |
ByteArrayOutputStream.toString(String
Converts the buffer's contents into a string by decoding the bytes using the named
charset.
|
| Constructor and Description | |
|---|---|
InputStreamReader(InputStream
Creates an InputStreamReader that uses the named charset.
|
|
OutputStreamWriter(OutputStream
Creates an OutputStreamWriter that uses the named charset.
|
|
PrintStream(File
Creates a new print stream, without automatic line flushing, with the specified file and charset.
|
|
PrintStream(OutputStream
Creates a new print stream.
|
|
PrintStream(String
Creates a new print stream, without automatic line flushing, with the specified file name and charset.
|
|
PrintWriter(File
Creates a new PrintWriter, without automatic line flushing, with the specified file and charset.
|
|
PrintWriter(String
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
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
Constructs a new
String by decoding the specified subarray of bytes using the specified charset.
|
|
String(byte[] bytes, String
Constructs a new
String by decoding the specified array of bytes using the specified
charset.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
URLDecoder.decode(String
Decodes a
application/x-www-form-urlencoded string using a specific encoding scheme.
|
static String |
URLEncoder.encode(String
Translates a string into
application/x-www-form-urlencoded format using a specific encoding scheme.
|
| Constructor and Description | |
|---|---|
Formatter(File
Constructs a new formatter with the specified file and charset.
|
|
Formatter(File
Constructs a new formatter with the specified file, charset, and locale.
|
|
Formatter(OutputStream
Constructs a new formatter with the specified output stream and charset.
|
|
Formatter(OutputStream
Constructs a new formatter with the specified output stream, charset, and locale.
|
|
Formatter(String
Constructs a new formatter with the specified file name and charset.
|
|
Formatter(String
Constructs a new formatter with the specified file name, charset, and locale.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Handler.setEncoding(String
Set the character encoding used by this
Handler.
|
void |
StreamHandler.setEncoding(String
Set (or change) the character encoding used by this
Handler.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
AbstractMarshallerImpl.getJavaEncoding(String
Gets the corresponding Java encoding name from an IANA name.
|