This class represents a character set and the associated codec.
The default charsets are Cp1252, Cp850, ISO-8859-1, UTF-8 and ASCII.
Defined in: Charset.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
jls.io.cs.Charset.availableCharsets()
Returns available charsets.
|
|
decode(buf)
Decodes byte buffer and returns the string.
|
|
| <static> |
jls.io.cs.Charset.defaultCharset()
Returns the default charset.
|
|
encode(str)
Encodes a string and returns a buffer.
|
|
| <static> |
jls.io.cs.Charset.forName(name)
Returns the specified charset.
|
|
getName()
Returns the charset name.
|
|
| <static> |
jls.io.cs.Charset.isSupported(name)
Tells if the specified charset is supported.
|
|
Creates a new decoder for this charset.
|
|
|
Creates a new encoder for this charset.
|