Methods of Charset
Method |
Description |
---|---|
newDecoder() |
Creates a new decoder |
newEncoder() |
Creates a new encoder |
getName() |
Returns the canonical name |
aliases() |
Returns an array of aliases |
isSupported() |
Tests whether this charset is supported by the current Java virtual machine |
java.nio.charset.Charset Class in Java
In Java, Charset is a mapping technique used in Java to map the 16-bit Unicode sequence and sequences of bytes. It is also used to encode and decode the string data text into different character encoding. It comes under java.nio.charset.Charset package.
The charset must begin with a number or letter. Every charset can decode and encode. For constructing a map that contains every charset, support is available in JVM(Java Virtual Machine).