/****************************************************************************** ASCII Control character constants ---------------------------------------------------- Copyright (c) Gunnar Gotshalks. All Rights Reserved. Permission to use, copy, modify, and distribute this software and its documentation for NON-COMMERCIAL purposes and without fee is hereby granted. ******************************************************************************/ package FlexOr.io; /** The Char class names the control characters because it is inconvenient to try to remember their ordinal position in the ASCII character set. The names are the standard ASCII abbreviation. We also give aliases to match common usage for some of the characters. All the other characters are easily represented within quotes and easy to remember and understand, so no special names are given to them -- except for Space which is ubiquitous and not always easy to see.
The characters are all of type char because they are used in contexts where type char is expected.
@author Gunnar Gotshalks @version 1.0 1999 Jan 10 */ public class Char { /** Null */ public static final char NUL = 0; /** End of string*/ public static final char EOS = '\0'; /** Start of heading */ public static final char SOH = 1; /** Start of text */ public static final char STX = 2; /** End of text */ public static final char ETX = 3; /** End of transmission */ public static final char EOT = 4; /** Enquire */ public static final char ENQ = 5; /** Acknowledge */ public static final char ACK = 6; /** Ring the bell */ public static final char BEL = 7; /** Backspace */ public static final char BS = 8; /** Horizontal tab */ public static final char HT = '\t'; /** Line feed */ public static final char LF = 10; /** End of line */ public static final char EOL = '\n'; /** Vertical tab */ public static final char VT = 11; /** Form feed */ public static final char FF = '\f'; /** Carriage return */ public static final char CR = '\r'; /** Shift out -- change character sets */ public static final char SO = 14; /** Shift in -- change character sets */ public static final char SI = 15; /** Toggle transmission to display screen */ public static final char TD = 15; /** Data link escape */ public static final char DLE = 16; /** Device control 1 */ public static final char DC1 = 17; /** Resume transmission to the screen and resume work*/ public static final char XON = 17; /** Device control 2 */ public static final char DC2 = 18; /** Device control 3 */ public static final char DC3 = 19; /** Stop transmission to screen and stop work */ public static final char XOFF = 19; /** Device control 4 */ public static final char DC4 = 20; /** Negative acknowledge */ public static final char NAK = 21; /** Synchronize idle */ public static final char SYN = 22; /** End of transmission block */ public static final char ETB = 23; /** Cancel */ public static final char CAN = 24; /** End of medium */ public static final char EM = 25; /** Interrupt the program */ public static final char ABORT = 25; /** Substitute */ public static final char SUB = 26; /** End of file */ public static final char EOF = 26; /** Escape */ public static final char ESC = 27; /** Field separator */ public static final char FS = 28; /** Group separator */ public static final char GS = 29; /** Record separator */ public static final char RS = 30; /** Unit separator */ public static final char US = 31; /** Delete last character */ public static final char DEL = 127; /** For new line output */ public static final char Newline = EOL; /** Space */ public static final char Space = ' '; /** Single quote */ public static final char SQ = '\''; /** Double quote */ public static final char DQ = '\"'; /** Constructor is never used as no instances of the class are needed -- all the constants are at the class level. */ public Char() { /* Nothing to do. */ } }