1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
package org.apache.johnzon.core; |
20 | |
|
21 | |
import javax.json.stream.JsonParser.Event; |
22 | |
|
23 | |
public interface JsonChars { |
24 | |
char EOF = Character.MIN_VALUE; |
25 | |
|
26 | |
char START_OBJECT_CHAR = '{'; |
27 | |
char END_OBJECT_CHAR = '}'; |
28 | |
char START_ARRAY_CHAR = '['; |
29 | |
char END_ARRAY_CHAR = ']'; |
30 | |
char QUOTE_CHAR = '"'; |
31 | |
char COMMA_CHAR = ','; |
32 | |
char KEY_SEPARATOR = ':'; |
33 | |
|
34 | |
char EOL = '\n'; |
35 | |
char SPACE = ' '; |
36 | |
|
37 | |
char TRUE_T = 't'; |
38 | |
char TRUE_R = 'r'; |
39 | |
char TRUE_U = 'u'; |
40 | |
char TRUE_E = 'e'; |
41 | |
char FALSE_F = 'f'; |
42 | |
char FALSE_A = 'a'; |
43 | |
char FALSE_L = 'l'; |
44 | |
char FALSE_S = 's'; |
45 | |
char FALSE_E = 'e'; |
46 | |
char NULL_N = 'n'; |
47 | |
char NULL_U = 'u'; |
48 | |
char NULL_L = 'l'; |
49 | |
|
50 | |
char ZERO = '0'; |
51 | |
char NINE = '9'; |
52 | |
char DOT = '.'; |
53 | |
char MINUS = '-'; |
54 | |
char PLUS = '+'; |
55 | |
char EXP_LOWERCASE = 'e'; |
56 | |
char EXP_UPPERCASE = 'E'; |
57 | |
char ESCAPE_CHAR = '\\'; |
58 | |
|
59 | |
char TAB = '\t'; |
60 | |
char BACKSPACE = '\b'; |
61 | |
char FORMFEED = '\f'; |
62 | |
char CR = '\r'; |
63 | |
|
64 | |
String NULL = "null".intern(); |
65 | |
|
66 | |
static final byte START_ARRAY = (byte) Event.START_ARRAY.ordinal(); |
67 | |
static final byte START_OBJECT = (byte) Event.START_OBJECT.ordinal(); |
68 | |
static final byte KEY_NAME=(byte) Event.KEY_NAME.ordinal(); |
69 | |
static final byte VALUE_STRING=(byte) Event.VALUE_STRING.ordinal(); |
70 | |
static final byte VALUE_NUMBER=(byte) Event.VALUE_NUMBER.ordinal(); |
71 | |
static final byte VALUE_TRUE=(byte) Event.VALUE_TRUE.ordinal(); |
72 | |
static final byte VALUE_FALSE=(byte) Event.VALUE_FALSE.ordinal(); |
73 | |
static final byte VALUE_NULL=(byte) Event.VALUE_NULL.ordinal(); |
74 | |
static final byte END_OBJECT=(byte) Event.END_OBJECT.ordinal(); |
75 | |
static final byte END_ARRAY=(byte) Event.END_ARRAY.ordinal(); |
76 | |
|
77 | |
static final byte COMMA_EVENT=Byte.MAX_VALUE; |
78 | |
static final byte KEY_SEPARATOR_EVENT=Byte.MIN_VALUE; |
79 | |
|
80 | |
static final Event[] EVT_MAP =Event.values(); |
81 | |
|
82 | |
} |