1
2
3
4
5 package org.astrogrid.io.ascii;
6
7 /***
8 * Description: ASCII Codes. An interface that can be implemented by
9 * any class that wants short-cut access to various standard ASCII
10 * codes, such as Line Feed (LF), End of File (EOF), etc
11 *
12 * @see Subsystem : JUICE
13 *
14 * @version :
15 * @ADD Chapter :
16 * @Created : 16/01/2000
17 * @Last Update :
18 * @CMS Library :
19 *
20 * @author : M Hill
21 *
22 *
23 **/
24
25 public interface AsciiCodes
26 {
27 /*** NUL - char 0 */
28 public static char NUL = '\u0000';
29 /*** Line Feed - char 10 */
30 public static char LF = '\u0009' +1;
31 /*** Carriage Return - char 13 */
32 public static char CR = '\u000c' +1;
33 /*** Carriage Return - byte 13 (8 bit) */
34 public static byte CR8 = 13;
35 /*** End of File - char 27 */
36 public static char EOF = '\u001b';
37
38 /*** Space - char 32 */
39 public static char SPACE = '\u0020';
40 /*** Space - byte 32 (8 bit) */
41 public static byte SPACE8 = 32;
42
43 /*** single quote/inverted comma */
44 public static char PIP = new String("'").charAt(0);
45 /*** double quote */
46 public static char QUOTE = '"';
47
48 /*** New line - created from '\n' */
49 public static byte[] NL = "\n".getBytes();
50 /*** New line - 8 bit, NB this is probably platform dependent... */
51 public static byte NL8 = CR8;
52 }
53
54
55
56
57
58
59
60
61
62
63
64
65