Classes of Charset
Class |
Description |
---|---|
Charset |
this is a named mapping between characters and bytes |
CharsetDecoder |
this class decodes bytes into characters |
CharsetEncoder |
this class encodes character into bytes |
CoderResult |
it is a description of the result state of a coder |
CodingErrorAction |
it detects coding errors and take error action |
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).