Secure iNet Factory

com.jscape.inet.terminal
Class SimpleType

java.lang.Object
  extended by com.jscape.inet.terminal.SimpleType
All Implemented Interfaces:
SequenceType

public class SimpleType
extends java.lang.Object
implements SequenceType

Simple sequence type. In general it has only two characters in sequence: "\033C", where C - alpha or digit character.


Method Summary
 java.lang.String getCanonicalForm(java.lang.StringBuffer value)
          Returns "canonical" form of control sequence (i.e.
static SimpleType getInstance()
          Returns one and only one instance of this type.
 int[] getParameters(java.lang.StringBuffer value)
          Extracts and returns sequence parameters as array of int.
 boolean isComplete(java.lang.StringBuffer value)
          Checks if sequence is complete.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

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

Returns:
one and only one instance of SimpleType object.

isComplete

public boolean isComplete(java.lang.StringBuffer value)
Checks if sequence is complete.

Specified by:
isComplete in interface SequenceType
Parameters:
value - sequence value.
Returns:
true if sequence is complete.

getParameters

public int[] getParameters(java.lang.StringBuffer value)
Extracts and returns sequence parameters as array of int.

Specified by:
getParameters in interface SequenceType
Parameters:
value - sequence value.
Returns:
array of int.

getCanonicalForm

public java.lang.String getCanonicalForm(java.lang.StringBuffer value)
Returns "canonical" form of control sequence (i.e. without parameters). For example: having "\033A" incoming sequence its "canonical" form will be "\033A".

Specified by:
getCanonicalForm in interface SequenceType
Parameters:
value - sequence value.
Returns:
string with "canonical" sequence form.

Secure iNet Factory

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