001: /* ====================================================================
002: Licensed to the Apache Software Foundation (ASF) under one or more
003: contributor license agreements. See the NOTICE file distributed with
004: this work for additional information regarding copyright ownership.
005: The ASF licenses this file to You under the Apache License, Version 2.0
006: (the "License"); you may not use this file except in compliance with
007: the License. You may obtain a copy of the License at
008:
009: http://www.apache.org/licenses/LICENSE-2.0
010:
011: Unless required by applicable law or agreed to in writing, software
012: distributed under the License is distributed on an "AS IS" BASIS,
013: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: See the License for the specific language governing permissions and
015: limitations under the License.
016: ==================================================================== */
017:
018: package org.apache.poi.hpsf;
019:
020: /**
021: * <p>Defines constants of general use.</p>
022: *
023: * @author Rainer Klute <a
024: * href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
025: * @since 2004-06-20
026: * @version $Id: Constants.java 489730 2006-12-22 19:18:16Z bayard $
027: */
028: public class Constants {
029: /** <p>Codepage 037, a special case</p> */
030: public static final int CP_037 = 37;
031:
032: /** <p>Codepage for SJIS</p> */
033: public static final int CP_SJIS = 932;
034:
035: /** <p>Codepage for GBK, aka MS936</p> */
036: public static final int CP_GBK = 936;
037:
038: /** <p>Codepage for MS949</p> */
039: public static final int CP_MS949 = 949;
040:
041: /** <p>Codepage for UTF-16</p> */
042: public static final int CP_UTF16 = 1200;
043:
044: /** <p>Codepage for UTF-16 big-endian</p> */
045: public static final int CP_UTF16_BE = 1201;
046:
047: /** <p>Codepage for Windows 1250</p> */
048: public static final int CP_WINDOWS_1250 = 1250;
049:
050: /** <p>Codepage for Windows 1251</p> */
051: public static final int CP_WINDOWS_1251 = 1251;
052:
053: /** <p>Codepage for Windows 1252</p> */
054: public static final int CP_WINDOWS_1252 = 1252;
055:
056: /** <p>Codepage for Windows 1253</p> */
057: public static final int CP_WINDOWS_1253 = 1253;
058:
059: /** <p>Codepage for Windows 1254</p> */
060: public static final int CP_WINDOWS_1254 = 1254;
061:
062: /** <p>Codepage for Windows 1255</p> */
063: public static final int CP_WINDOWS_1255 = 1255;
064:
065: /** <p>Codepage for Windows 1256</p> */
066: public static final int CP_WINDOWS_1256 = 1256;
067:
068: /** <p>Codepage for Windows 1257</p> */
069: public static final int CP_WINDOWS_1257 = 1257;
070:
071: /** <p>Codepage for Windows 1258</p> */
072: public static final int CP_WINDOWS_1258 = 1258;
073:
074: /** <p>Codepage for Johab</p> */
075: public static final int CP_JOHAB = 1361;
076:
077: /** <p>Codepage for Macintosh Roman (Java: MacRoman)</p> */
078: public static final int CP_MAC_ROMAN = 10000;
079:
080: /** <p>Codepage for Macintosh Japan (Java: unknown - use SJIS, cp942 or
081: * cp943)</p> */
082: public static final int CP_MAC_JAPAN = 10001;
083:
084: /** <p>Codepage for Macintosh Chinese Traditional (Java: unknown - use Big5,
085: * MS950, or cp937)</p> */
086: public static final int CP_MAC_CHINESE_TRADITIONAL = 10002;
087:
088: /** <p>Codepage for Macintosh Korean (Java: unknown - use EUC_KR or
089: * cp949)</p> */
090: public static final int CP_MAC_KOREAN = 10003;
091:
092: /** <p>Codepage for Macintosh Arabic (Java: MacArabic)</p> */
093: public static final int CP_MAC_ARABIC = 10004;
094:
095: /** <p>Codepage for Macintosh Hebrew (Java: MacHebrew)</p> */
096: public static final int CP_MAC_HEBREW = 10005;
097:
098: /** <p>Codepage for Macintosh Greek (Java: MacGreek)</p> */
099: public static final int CP_MAC_GREEK = 10006;
100:
101: /** <p>Codepage for Macintosh Cyrillic (Java: MacCyrillic)</p> */
102: public static final int CP_MAC_CYRILLIC = 10007;
103:
104: /** <p>Codepage for Macintosh Chinese Simplified (Java: unknown - use
105: * EUC_CN, ISO2022_CN_GB, MS936 or cp935)</p> */
106: public static final int CP_MAC_CHINESE_SIMPLE = 10008;
107:
108: /** <p>Codepage for Macintosh Romanian (Java: MacRomania)</p> */
109: public static final int CP_MAC_ROMANIA = 10010;
110:
111: /** <p>Codepage for Macintosh Ukrainian (Java: MacUkraine)</p> */
112: public static final int CP_MAC_UKRAINE = 10017;
113:
114: /** <p>Codepage for Macintosh Thai (Java: MacThai)</p> */
115: public static final int CP_MAC_THAI = 10021;
116:
117: /** <p>Codepage for Macintosh Central Europe (Latin-2)
118: * (Java: MacCentralEurope)</p> */
119: public static final int CP_MAC_CENTRAL_EUROPE = 10029;
120:
121: /** <p>Codepage for Macintosh Iceland (Java: MacIceland)</p> */
122: public static final int CP_MAC_ICELAND = 10079;
123:
124: /** <p>Codepage for Macintosh Turkish (Java: MacTurkish)</p> */
125: public static final int CP_MAC_TURKISH = 10081;
126:
127: /** <p>Codepage for Macintosh Croatian (Java: MacCroatian)</p> */
128: public static final int CP_MAC_CROATIAN = 10082;
129:
130: /** <p>Codepage for US-ASCII</p> */
131: public static final int CP_US_ACSII = 20127;
132:
133: /** <p>Codepage for KOI8-R</p> */
134: public static final int CP_KOI8_R = 20866;
135:
136: /** <p>Codepage for ISO-8859-1</p> */
137: public static final int CP_ISO_8859_1 = 28591;
138:
139: /** <p>Codepage for ISO-8859-2</p> */
140: public static final int CP_ISO_8859_2 = 28592;
141:
142: /** <p>Codepage for ISO-8859-3</p> */
143: public static final int CP_ISO_8859_3 = 28593;
144:
145: /** <p>Codepage for ISO-8859-4</p> */
146: public static final int CP_ISO_8859_4 = 28594;
147:
148: /** <p>Codepage for ISO-8859-5</p> */
149: public static final int CP_ISO_8859_5 = 28595;
150:
151: /** <p>Codepage for ISO-8859-6</p> */
152: public static final int CP_ISO_8859_6 = 28596;
153:
154: /** <p>Codepage for ISO-8859-7</p> */
155: public static final int CP_ISO_8859_7 = 28597;
156:
157: /** <p>Codepage for ISO-8859-8</p> */
158: public static final int CP_ISO_8859_8 = 28598;
159:
160: /** <p>Codepage for ISO-8859-9</p> */
161: public static final int CP_ISO_8859_9 = 28599;
162:
163: /** <p>Codepage for ISO-2022-JP</p> */
164: public static final int CP_ISO_2022_JP1 = 50220;
165:
166: /** <p>Another codepage for ISO-2022-JP</p> */
167: public static final int CP_ISO_2022_JP2 = 50221;
168:
169: /** <p>Yet another codepage for ISO-2022-JP</p> */
170: public static final int CP_ISO_2022_JP3 = 50222;
171:
172: /** <p>Codepage for ISO-2022-KR</p> */
173: public static final int CP_ISO_2022_KR = 50225;
174:
175: /** <p>Codepage for EUC-JP</p> */
176: public static final int CP_EUC_JP = 51932;
177:
178: /** <p>Codepage for EUC-KR</p> */
179: public static final int CP_EUC_KR = 51949;
180:
181: /** <p>Codepage for GB2312</p> */
182: public static final int CP_GB2312 = 52936;
183:
184: /** <p>Codepage for GB18030</p> */
185: public static final int CP_GB18030 = 54936;
186:
187: /** <p>Another codepage for US-ASCII</p> */
188: public static final int CP_US_ASCII2 = 65000;
189:
190: /** <p>Codepage for UTF-8</p> */
191: public static final int CP_UTF8 = 65001;
192:
193: /** <p>Codepage for Unicode</p> */
194: public static final int CP_UNICODE = CP_UTF16;
195: }
|