Class jls.io.cs.Charset

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.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
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.
 
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.
Class Detail
jls.io.cs.Charset()
Method Detail
<static> {Array} jls.io.cs.Charset.availableCharsets()
Returns available charsets.
Returns:
{Array} The available charsets.

{String} decode(buf)
Decodes byte buffer and returns the string.
Parameters:
{jls.lang.Buffer} buf
The buffer to decode.
Returns:
{String} The decoded string.

<static> {jls.io.cs.Charset} jls.io.cs.Charset.defaultCharset()
Returns the default charset.
Returns:
{jls.io.cs.Charset} The default charset.

{jls.lang.Buffer} encode(str)
Encodes a string and returns a buffer.
Parameters:
{String} str
The string to encode.
Returns:
{jls.lang.Buffer} The buffer.

<static> {jls.io.cs.Charset} jls.io.cs.Charset.forName(name)
Returns the specified charset.
Parameters:
{String} name
The charset name.
Returns:
{jls.io.cs.Charset} The charset.

{String} getName()
Returns the charset name.
Returns:
{String} The charset name.

<static> {Boolean} jls.io.cs.Charset.isSupported(name)
Tells if the specified charset is supported.
Parameters:
{String} name
The charset name.
Returns:
{Boolean} true if the specified charset is supported.

{jls.io.cs.CharDecoder} newDecoder()
Creates a new decoder for this charset.
Returns:
{jls.io.cs.CharDecoder} The buffer.

{jls.io.cs.CharEncoder} newEncoder()
Creates a new encoder for this charset.
Returns:
{jls.io.cs.CharEncoder} The buffer.

Documentation generated by JsDoc Toolkit 2.3.2 on Sat Jan 08 2011 01:56:36 GMT+0100 (CET)