Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This Java class describes the non-printable control characters, by name, from the ANSI X3.4-1968 standard 7-bit charset, also known as US Ascii or ECMA-6.
package com.coseos.standards.ansi.x3;
/** This class describes the non-printable control characters, by name, from the ANSI X3.4-1968 standard 7-bit charset, also known as US Ascii or ECMA-6.
'I have also approved recommendations of the Secretary of Commerce regarding standards for recording the Standard Code for Information Interchange on magnetic tapes and paper tapes when they are used in computer operations. All computers and related equipment configurations brought into the Federal Government inventory on and after July 1, 1969, must have the capability to use the Standard Code for Information Interchange and the formats prescribed by the magnetic tape and paper tape standards when these media are used.'
Lyndon B. Johnson, March 11th 1968
*/
public class X3_4_1968_USAscii {
public static final String NULL = "\u0000";
public static final String SOH = "\u0001";
public static final String STX = "\u0002";
public static final String ETX = "\u0003";
public static final String EOT = "\u0004";
public static final String ENQ = "\u0005";
public static final String ACK = "\u0006";
public static final String BEL = "\u0007";
public static final String BS = "\u0008";
public static final String HT = "\u0009";
public static final String LF = "\n"; // \u000a
public static final String VT = "\u000b";
public static final String FF = "\u000c";
public static final String CR = "\r"; // \u000d
public static final String SO = "\u000e";
public static final String SI = "\u000f";
public static final String DLE = "\u0010";
public static final String DC1 = "\u0011";
public static final String DC2 = "\u0012";
public static final String DC3 = "\u0013";
public static final String DC4 = "\u0014";
public static final String NAK = "\u0015";
public static final String SYN = "\u0016";
public static final String ETB = "\u0017";
public static final String CAN = "\u0018";
public static final String EM = "\u0019";
public static final String SUB = "\u001a";
public static final String ESC = "\u001b";
public static final String FS = "\u001c";
public static final String GS = "\u001d";
public static final String RS = "\u001e";
public static final String US = "\u001f";
public static final String SP = "\u0020";
public static final String DEL = "\u007f";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment