Class LineDisplayService.EscUnknown
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.linedisplay.LineDisplayService.DisplayDataPart
de.gmxhome.conrad.jpos.jpos_base.linedisplay.LineDisplayService.EscUnknown
- Enclosing class:
- LineDisplayService
Class describing unknown escape sequence.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getEsc()
Returns capital character that marks the end of the escape sequence.int
Returns value that contains the lower-case characters between value and upper-case character that marks the end of the sequence.int
getValue()
Returns value in ESC sequence, in any.
-
Constructor Details
-
EscUnknown
public EscUnknown(int type, int subtype, int value)Constructor.- Parameters:
type
- Initial value for Esc.subtype
- Initial value for Subtype.value
- Initial value for Value.
-
-
Method Details
-
getEsc
public int getEsc()Returns capital character that marks the end of the escape sequence.- Returns:
- Character between A and Z.
-
getSubtype
public int getSubtype()Returns value that contains the lower-case characters between value and upper-case character that marks the end of the sequence. The codes of the lower-case characters are the digits of Subtype in base1000 representation, e.g. if the lower-case characters between value and upper-case character are "abc", Subtype will be (('a' * 1000) + 'b') * 1000 + 'c'.- Returns:
- Lowe-case character sequence before end character as described above.
-
getValue
public int getValue()Returns value in ESC sequence, in any. -1 if no value is present.- Returns:
- Value.
-