Secure iNet Factory

com.jscape.inet.terminal
Class USAscii

java.lang.Object
  extended by com.jscape.inet.terminal.USAscii
All Implemented Interfaces:
CharacterSet

public class USAscii
extends java.lang.Object
implements CharacterSet

Represents US ASCII character set. In fact performs no additional encoding of incoming characters. "Singleton" pattern [Gamma94]. "Strategy" pattern [Gamma94].


Method Summary
 char encode(char ch)
          Encodes giving character.
static USAscii getInstance()
          Returns one and only one instance of this type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static USAscii getInstance()
Returns one and only one instance of this type.

Returns:
one and only one instance of this type.

encode

public char encode(char ch)
Encodes giving character.

Specified by:
encode in interface CharacterSet
Parameters:
ch - character to be encoded.
Returns:
encoded character.

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved