1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 package org.marre.wap.wbxml;
36
37 public final class WbxmlConstants
38 {
39 /***
40 * Change the code page for the current token state. Followed by a single
41 * u_int8 indicating the new code page number.
42 */
43 public static final byte TOKEN_SWITCH_PAGE = 0x00;
44
45 /*** Indicates the end of an attribute list or the end of an element. */
46 public static final byte TOKEN_END = 0x01;
47
48 /***
49 * A character entity. Followed by a mb_u_int32 encoding the character
50 * entity number.
51 */
52 public static final byte TOKEN_ENTITY = 0x02;
53
54 /*** Inline string. Followed by a termstr. */
55 public static final byte TOKEN_STR_I = 0x03;
56
57 /***
58 * An unknown attribute name, or unknown tag posessing no attributes or
59 * content.Followed by a mb_u_int32 that encodes an offset into the string
60 * table.
61 */
62 public static final byte TOKEN_LITERAL = 0x04;
63
64 /***
65 * Inline string document-type-specific extension token. Token is followed
66 * by a termstr.
67 */
68 public static final byte TOKEN_EXT_I_0 = 0x40;
69
70 /***
71 * Inline string document-type-specific extension token. Token is followed
72 * by a termstr.
73 */
74 public static final byte TOKEN_EXT_I_1 = 0x41;
75
76 /***
77 * Inline string document-type-specific extension token. Token is followed
78 * by a termstr.
79 */
80 public static final byte TOKEN_EXT_I_2 = 0x42;
81
82 /*** Processing instruction. */
83 public static final byte TOKEN_PI = 0x43;
84
85 /*** An unknown tag posessing content but no attributes. */
86 public static final byte TOKEN_LITERAL_C = 0x44;
87
88 /***
89 * Inline integer document-type-specific extension token. Token is followed
90 * by a mb_u_int32.
91 */
92 public static final byte TOKEN_EXT_T_0 = (byte) 0x80;
93
94 /***
95 * Inline integer document-type-specific extension token. Token is followed
96 * by a mb_u_int32.
97 */
98 public static final byte TOKEN_EXT_T_1 = (byte) 0x81;
99
100 /***
101 * Inline integer document-type-specific extension token. Token is followed
102 * by a mb_u_int32.
103 */
104 public static final byte TOKEN_EXT_T_2 = (byte) 0x82;
105
106 /***
107 * String table reference. Followed by a mb_u_int32 encoding a byte offset
108 * from the beginning of the string table.
109 */
110 public static final byte TOKEN_STR_T = (byte) 0x83;
111
112 /*** An unknown tag posessing attributes but no content. */
113 public static final byte TOKEN_LITERAL_A = (byte) 0x84;
114
115 /*** Single-byte document-type-specific extension token. */
116 public static final byte TOKEN_EXT_0 = (byte) 0xC0;
117
118 /*** Single-byte document-type-specific extension token. */
119 public static final byte TOKEN_EXT_1 = (byte) 0xC1;
120
121 /*** Single-byte document-type-specific extension token. */
122 public static final byte TOKEN_EXT_2 = (byte) 0xC2;
123
124 /*** Opaque document-type-specific data. */
125 public static final byte TOKEN_OPAQ = (byte) 0xC3;
126
127 /*** An unknown tag posessing both attributes and content. */
128 public static final byte TOKEN_LITERAL_AC = (byte) 0xC4;
129
130 /*** Tag contains content. */
131 public static final byte TOKEN_KNOWN_C = (byte) 0x40;
132
133 /*** Tag contains attributes. */
134 public static final byte TOKEN_KNOWN_A = (byte) 0x80;
135
136 /*** Tag contains attributes. */
137 public static final byte TOKEN_KNOWN_AC = (byte) 0xC0;
138
139 /*** Tag contains attributes. */
140 public static final byte TOKEN_KNOWN = (byte) 0x00;
141
142 public static final String[] KNOWN_PUBLIC_DOCTYPES = {
143
144
145
146 "-//WAPFORUM//DTD WML 1.0//EN", // (WML 1.0)
147 "-//WAPFORUM//DTD WTA 1.0//EN", // (Deprecated - WTA Event 1.0)
148 "-//WAPFORUM//DTD WML 1.1//EN", // (WML 1.1)
149 "-//WAPFORUM//DTD SI 1.0//EN", // (Service Indication 1.0)
150 "-//WAPFORUM//DTD SL 1.0//EN", // (Service Loading 1.0)
151 "-//WAPFORUM//DTD CO 1.0//EN", // (Cache Operation 1.0)
152 "-//WAPFORUM//DTD CHANNEL 1.1//EN", // (Channel 1.1)
153 "-//WAPFORUM//DTD WML 1.2//EN", // (WML 1.2)
154 "-//WAPFORUM//DTD WML 1.3//EN", // (WML 1.3)
155 "-//WAPFORUM//DTD PROV 1.0//EN", // (Provisioning 1.0)
156 "-//WAPFORUM//DTD WTA-WML 1.2//EN", // (WTA-WML 1.2)
157 "-//WAPFORUM//DTD EMN 1.0//EN", // (Email Notification 1.0 WAP-297)
158 "-//OMA//DTD DRMREL 1.0//EN", // (DRM REL 1.0)
159 };
160
161 private WbxmlConstants()
162 {
163
164 }
165 }