fr.umlv.tatoo.cc.lexer.charset.encoding
Class UTF16Encoding

java.lang.Object
  extended by fr.umlv.tatoo.cc.lexer.charset.encoding.Encoding
      extended by fr.umlv.tatoo.cc.lexer.charset.encoding.UTF16Encoding

public class UTF16Encoding
extends Encoding


Constructor Summary
UTF16Encoding()
           
 
Method Summary
 char decode(int c)
          Returns the character corresponding to a specific code.
 int encode(char c)
          Returns the encoding of a single character.
 int getMaxValue()
          Returns a constant corresponding to the maximum value of the charset.
 int getMinValue()
          Returns a constant corresponding to the minimum value of the charset.
 
Methods inherited from class fr.umlv.tatoo.cc.lexer.charset.encoding.Encoding
getAny
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UTF16Encoding

public UTF16Encoding()
Method Detail

getMinValue

public int getMinValue()
Description copied from class: Encoding
Returns a constant corresponding to the minimum value of the charset. Implementation of this method should not access to fields.

Specified by:
getMinValue in class Encoding
Returns:
the minimum value of the charset

getMaxValue

public int getMaxValue()
Description copied from class: Encoding
Returns a constant corresponding to the maximum value of the charset. Implementation of this method should not access to fields.

Specified by:
getMaxValue in class Encoding
Returns:
the maximum value of the charset

encode

public int encode(char c)
Description copied from class: Encoding
Returns the encoding of a single character.

Specified by:
encode in class Encoding
Parameters:
c - the character to encode.
Returns:
the encoding of the character.

decode

public char decode(int c)
Description copied from class: Encoding
Returns the character corresponding to a specific code.

Specified by:
decode in class Encoding
Parameters:
c - the code
Returns:
the character decoded.