Uses of Class java.nio.charset.Charset

Uses in package java.io

Constructors with parameter type java.nio.charset.Charset

Creates an InputStreamReader that uses a decoder of the given charset to decode the bytes in the InputStream into characters.
This method initializes a new instance of OutputStreamWriter to write to the specified stream using a given Charset.

Uses in package java.nio.charset

Constructors with parameter type java.nio.charset.Charset

CharsetDecoder.CharsetDecoder(Charset cs, float averageCharsPerByte, float maxCharsPerByte)
CharsetEncoder.CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar)
CharsetEncoder.CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement)

Methods with parameter type java.nio.charset.Charset

int
boolean

Methods with return type java.nio.charset.Charset

Charset
Charset
Charset
Returns the system default charset.
Charset
Charset
Charset.forName(String charsetName)
Returns the Charset instance for the charset of the given name.

Uses in package java.nio.charset.spi

Methods with return type java.nio.charset.Charset

Charset
Returns the named charset, by canonical name or alias.

Uses in package java.lang

Constructors with parameter type java.nio.charset.Charset

String.String(byte[] data, int offset, int count, Charset encoding)
Creates a new String using the portion of the byte array starting at the offset and ending at offset + count.
String.String(byte[] data, Charset encoding)
Creates a new String using the byte array.

Methods with parameter type java.nio.charset.Charset

byte[]
Converts the Unicode characters in this String to a byte array.