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

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

public class ASCIIEncoding
extends Encoding


Constructor Summary
ASCIIEncoding()
           
 
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

ASCIIEncoding

public ASCIIEncoding()
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.