KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > orbutil > ORBConstants


1 /*
2  * @(#)ORBConstants.java 1.63 05/01/04
3  *
4  * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.impl.orbutil;
9
10 import com.sun.corba.se.impl.util.SUNVMCID ;
11
12 public class ORBConstants {
13     private ORBConstants() {}
14
15     public static final String JavaDoc STRINGIFY_PREFIX = "IOR:" ;
16
17     /* TAGS
18        tag-request@omg.org
19        FAQ on tags and tag allocation: http://doc.omg.org/ptc/99-02-01.
20        http://doc.omg.org/standard-tags
21        http://doc.omg.org/vendor-tags
22
23        Last update: 19th August 2003 (ptc/03-08-14)
24
25        // Legacy
26        1 profile tag 0x4f4e4300 ("ONC\x00")
27        1 profile tag 0x4e454f00 ("NEO\x00")
28        1 profile tag 0x434f4f4c ("COOL")
29        16 service tags 0x4e454f00 - 0x4e454f0f ("NEO\x00" - "NEO\x0f")
30
31        // Current
32        16 VMCID 0x5355xxxx ("SU\x00\x00" - "SU\xff\xff")
33        16 profile tags 0x53554e00 - 0x53554e0f ("SUN\x00" - "SUN\x0f")
34        16 ORB Type IDs 0x53554e00 - 0x53554e0f ("SUN\x00" - "SUN\x0f")
35        64 service tags 0x53554e00 - 0x53554e3f ("SUN\x00" - "SUN\x3f")
36        64 component tags 0x53554e00 - 0x53554e3f ("SUN\x00" - "SUN\x3f")
37     */

38
39     // All NEO service contexts must be in the range
40
// NEO_FIRST_SERVICE_CONTEXT to
41
// NEO_FIRST_SERVICE_CONTEXT + NUM_NEO_SERVICE_CONTEXTS - 1
42
public static final int NEO_FIRST_SERVICE_CONTEXT = 0x4e454f00 ;
43     public static final int NUM_NEO_SERVICE_CONTEXTS = 15 ;
44     public static final int TAG_ORB_VERSION = NEO_FIRST_SERVICE_CONTEXT ;
45
46     public static final int SUN_TAGGED_COMPONENT_ID_BASE = 0x53554e00;
47     public static final int SUN_SERVICE_CONTEXT_ID_BASE = 0x53554e00;
48
49     //
50
// Tagged Components Ids
51
//
52

53     // Used by AS 7 for IIOP failover.
54
public static final int TAG_CONTAINER_ID =
55     SUN_TAGGED_COMPONENT_ID_BASE + 0;
56     // Used by AS 8.1 for Request Partioning
57
public static final int TAG_REQUEST_PARTITIONING_ID =
58     SUN_TAGGED_COMPONENT_ID_BASE + 1;
59     // TaggedComponentId for Java serialization tagged component.
60
public static final int TAG_JAVA_SERIALIZATION_ID =
61     SUN_TAGGED_COMPONENT_ID_BASE + 2;
62
63     //
64
// Service Context Ids
65
//
66

67     // Used by AS 7 for IIOP failover.
68
public static final int CONTAINER_ID_SERVICE_CONTEXT =
69     SUN_SERVICE_CONTEXT_ID_BASE + 0;
70
71     // All Sun policies are allocated using the SUNVMCID, which is also
72
// used for minor codes. This allows 12 bits of offset, so
73
// the largest legal Sun policy is SUNVMCID.value + 4095.
74
public static final int SERVANT_CACHING_POLICY = SUNVMCID.value + 0 ;
75     public static final int ZERO_PORT_POLICY = SUNVMCID.value + 1 ;
76     public static final int COPY_OBJECT_POLICY = SUNVMCID.value + 2 ;
77     public static final int REQUEST_PARTITIONING_POLICY = SUNVMCID.value + 3 ;
78
79     // These are the subcontract IDs for various qualities of
80
// service/implementation.
81
// Persistent SCIDs have the second bit as 1.
82
// SCIDs less than FIRST_POA_SCID are JavaIDL SCIDs.
83
public static final int TOA_SCID = 2 ;
84
85     public static final int DEFAULT_SCID = TOA_SCID ;
86
87     public static final int FIRST_POA_SCID = 32;
88     public static final int MAX_POA_SCID = 63;
89     public static final int TRANSIENT_SCID = FIRST_POA_SCID ;
90     public static final int PERSISTENT_SCID = makePersistent( TRANSIENT_SCID ) ;
91     public static final int SC_TRANSIENT_SCID = FIRST_POA_SCID + 4 ;
92     public static final int SC_PERSISTENT_SCID = makePersistent( SC_TRANSIENT_SCID ) ;
93     public static final int IISC_TRANSIENT_SCID = FIRST_POA_SCID + 8 ;
94     public static final int IISC_PERSISTENT_SCID = makePersistent( IISC_TRANSIENT_SCID ) ;
95     public static final int MINSC_TRANSIENT_SCID = FIRST_POA_SCID + 12 ;
96     public static final int MINSC_PERSISTENT_SCID = makePersistent( MINSC_TRANSIENT_SCID ) ;
97
98     public static boolean isTransient( int scid )
99     {
100     return (scid & 2) == 0 ;
101     }
102
103     public static int makePersistent( int scid )
104     {
105     return scid | 2 ;
106     }
107
108     // Constants for ORB properties **************************************************************
109

110     // All ORB properties must follow the following rules:
111
// 1. Property names must start with either
112
// ORG_OMG_CORBA_PREFIX or SUN_PREFIX.
113
// 2. Property names must have unique suffixes after the last ".".
114
// 3. Property names must have "ORB" as the first 3 letters
115
// in their suffix.
116
// 4. proprietary property names should have a subsystem
117
// where appropriate after the prefix.
118

119     // org.omg.CORBA properties must be defined by OMG standards
120
// The well known org.omg.CORBA.ORBClass and
121
// org.omg.CORBA.ORBSingletonClass are not included here
122
// since they occur in org.omg.CORBA.ORB.
123

124     public static final String JavaDoc ORG_OMG_PREFIX = "org.omg." ;
125     public static final String JavaDoc ORG_OMG_CORBA_PREFIX = "org.omg.CORBA." ;
126
127     public static final String JavaDoc INITIAL_HOST_PROPERTY =
128     ORG_OMG_CORBA_PREFIX + "ORBInitialHost" ;
129     public static final String JavaDoc INITIAL_PORT_PROPERTY =
130     ORG_OMG_CORBA_PREFIX + "ORBInitialPort" ;
131     public static final String JavaDoc INITIAL_SERVICES_PROPERTY =
132     ORG_OMG_CORBA_PREFIX + "ORBInitialServices" ;
133     public static final String JavaDoc DEFAULT_INIT_REF_PROPERTY =
134     ORG_OMG_CORBA_PREFIX + "ORBDefaultInitRef" ;
135     public static final String JavaDoc ORB_INIT_REF_PROPERTY =
136     ORG_OMG_CORBA_PREFIX + "ORBInitRef" ;
137
138     // All of our proprietary properties must start with com.sun.CORBA
139
public static final String JavaDoc SUN_PREFIX = "com.sun.CORBA." ;
140
141     // general properties
142
public static final String JavaDoc ALLOW_LOCAL_OPTIMIZATION = SUN_PREFIX + "ORBAllowLocalOptimization" ;
143     public static final String JavaDoc SERVER_PORT_PROPERTY = SUN_PREFIX + "ORBServerPort" ;
144     public static final String JavaDoc SERVER_HOST_PROPERTY = SUN_PREFIX + "ORBServerHost" ;
145     public static final String JavaDoc ORB_ID_PROPERTY = ORG_OMG_CORBA_PREFIX + "ORBId" ;
146     // This property is provided for backward compatibility reasons
147
public static final String JavaDoc OLD_ORB_ID_PROPERTY = SUN_PREFIX + "ORBid" ;
148     public static final String JavaDoc ORB_SERVER_ID_PROPERTY = ORG_OMG_CORBA_PREFIX + "ORBServerId" ;
149     public static final String JavaDoc DEBUG_PROPERTY = SUN_PREFIX + "ORBDebug" ;
150     // Property for setting use of repository Ids during serialization.
151
public static final String JavaDoc USE_REP_ID = SUN_PREFIX + "ORBUseRepId";
152
153     // NOTE: This is an internal property. It should never be set by
154
// a user. That is the reason it has spaces in its name - to make it
155
// harder to use.
156
public static final String JavaDoc LISTEN_ON_ALL_INTERFACES = SUN_PREFIX + "INTERNAL USE ONLY: listen on all interfaces";
157
158     // giop related properties - default settings in decimal form
159
public static final String JavaDoc GIOP_VERSION = SUN_PREFIX + "giop.ORBGIOPVersion" ;
160     public static final String JavaDoc GIOP_FRAGMENT_SIZE = SUN_PREFIX + "giop.ORBFragmentSize" ;
161     public static final String JavaDoc GIOP_BUFFER_SIZE = SUN_PREFIX + "giop.ORBBufferSize" ;
162     public static final String JavaDoc GIOP_11_BUFFMGR = SUN_PREFIX + "giop.ORBGIOP11BuffMgr";
163     public static final String JavaDoc GIOP_12_BUFFMGR = SUN_PREFIX + "giop.ORBGIOP12BuffMgr";
164     public static final String JavaDoc GIOP_TARGET_ADDRESSING = SUN_PREFIX + "giop.ORBTargetAddressing";
165     public static final int GIOP_DEFAULT_FRAGMENT_SIZE = 1024;
166     public static final int GIOP_DEFAULT_BUFFER_SIZE = 1024;
167     public static final int DEFAULT_GIOP_11_BUFFMGR = 0; //Growing
168
public static final int DEFAULT_GIOP_12_BUFFMGR = 2; //Streaming
169
public static final short ADDR_DISP_OBJKEY = 0; // object key used for target addressing
170
public static final short ADDR_DISP_PROFILE = 1; // iop profile used for target addressing
171
public static final short ADDR_DISP_IOR = 2; // ior used for target addressing
172
public static final short ADDR_DISP_HANDLE_ALL = 3; // accept all target addressing dispositions (default)
173

174     // CORBA formal 00-11-03 sections 15.4.2.2, 15.4.3.2, 15.4.6.2
175
// state that the GIOP 1.2 RequestMessage, ReplyMessage, and
176
// LocateReply message bodies must begin on 8 byte boundaries.
177
public static final int GIOP_12_MSG_BODY_ALIGNMENT = 8;
178
179     // The GIOP 1.2 fragments must be divisible by 8. We generalize this
180
// to GIOP 1.1 fragments, as well.
181
public static final int GIOP_FRAGMENT_DIVISOR = 8;
182     public static final int GIOP_FRAGMENT_MINIMUM_SIZE = 32;
183
184     // connection management properties
185
public static final String JavaDoc HIGH_WATER_MARK_PROPERTY =
186     SUN_PREFIX + "connection.ORBHighWaterMark" ;
187     public static final String JavaDoc LOW_WATER_MARK_PROPERTY =
188     SUN_PREFIX + "connection.ORBLowWaterMark" ;
189     public static final String JavaDoc NUMBER_TO_RECLAIM_PROPERTY =
190     SUN_PREFIX + "connection.ORBNumberToReclaim" ;
191
192     public static final String JavaDoc ACCEPTOR_CLASS_PREFIX_PROPERTY =
193     SUN_PREFIX + "transport.ORBAcceptor";
194
195     public static final String JavaDoc CONTACT_INFO_LIST_FACTORY_CLASS_PROPERTY =
196     SUN_PREFIX + "transport.ORBContactInfoList";
197
198     // Legacy:
199
public static final String JavaDoc LEGACY_SOCKET_FACTORY_CLASS_PROPERTY =
200     SUN_PREFIX + "legacy.connection.ORBSocketFactoryClass" ;
201
202
203     public static final String JavaDoc SOCKET_FACTORY_CLASS_PROPERTY =
204     SUN_PREFIX + "transport.ORBSocketFactoryClass" ;
205     public static final String JavaDoc LISTEN_SOCKET_PROPERTY =
206     SUN_PREFIX + "transport.ORBListenSocket";
207     public static final String JavaDoc IOR_TO_SOCKET_INFO_CLASS_PROPERTY =
208     SUN_PREFIX + "transport.ORBIORToSocketInfoClass";
209     public static final String JavaDoc IIOP_PRIMARY_TO_CONTACT_INFO_CLASS_PROPERTY =
210     SUN_PREFIX + "transport.ORBIIOPPrimaryToContactInfoClass";
211
212     // Request partitioning maximum and minimum thread pool id constants.
213
public static final int REQUEST_PARTITIONING_MIN_THREAD_POOL_ID = 0;
214     public static final int REQUEST_PARTITIONING_MAX_THREAD_POOL_ID = 63;
215
216     // transport read tcp timeout property, colon separated property
217
// with syntax <initial time to wait:max read giop header time to
218
// wait: max read message time to wait:backoff factor>
219
public static final String JavaDoc TRANSPORT_TCP_READ_TIMEOUTS_PROPERTY =
220     SUN_PREFIX + "transport.ORBTCPReadTimeouts";
221
222     // initial time to wait in milliseconds if a transport
223
// tcp read returns 0 bytes
224
public static final int TRANSPORT_TCP_INITIAL_TIME_TO_WAIT = 100;
225
226     // max time to spend in cumulative waits in milliseconds
227
// if a transport tcp read returns 0 bytes
228
public static final int TRANSPORT_TCP_MAX_TIME_TO_WAIT = 3000;
229
230     // max time to spend in cumulative waits in milliseconds
231
// if a transport tcp read of GIOP header returns 0 bytes
232
public static final int TRANSPORT_TCP_GIOP_HEADER_MAX_TIME_TO_WAIT = 300;
233
234     // A backoff percentage used to compute the next amount of time to
235
// wait on a subsequent transport tcp read of 0 bytes
236
public static final int TRANSPORT_TCP_TIME_TO_WAIT_BACKOFF_FACTOR = 20;
237
238     public static final String JavaDoc USE_NIO_SELECT_TO_WAIT_PROPERTY =
239     SUN_PREFIX + "transport.ORBUseNIOSelectToWait";
240
241     // "Socket" | "SocketChannel"
242
// Note: Connections accepted by SocketChannel will be SocketChannel.
243
public static final String JavaDoc ACCEPTOR_SOCKET_TYPE_PROPERTY =
244     SUN_PREFIX + "transport.ORBAcceptorSocketType";
245
246     // Applicable if using SocketChannel and using select thread.
247
public static final String JavaDoc ACCEPTOR_SOCKET_USE_WORKER_THREAD_FOR_EVENT_PROPERTY =
248     SUN_PREFIX + "transport.ORBAcceptorSocketUseWorkerThreadForEvent";
249
250     // Applicable on client-side. "Socket" | "SocketChannel"
251
public static final String JavaDoc CONNECTION_SOCKET_TYPE_PROPERTY =
252     SUN_PREFIX + "transport.ORBConnectionSocketType";
253
254     // Applicable if using SocketChannel and using select thread
255
public static final String JavaDoc CONNECTION_SOCKET_USE_WORKER_THREAD_FOR_EVENT_PROPERTY =
256     SUN_PREFIX + "transport.ORBConnectionSocketUseWorkerThreadForEvent";
257
258     // Used to disable the use of direct byte buffers. This enables much easier
259
// debugging, because the contents of a direct byte buffer cannot be
260
// viewed in most (all?) debuggers.
261
public static final String JavaDoc DISABLE_DIRECT_BYTE_BUFFER_USE_PROPERTY =
262     SUN_PREFIX + "transport.ORBDisableDirectByteBufferUse" ;
263
264     public static final String JavaDoc SOCKET = "Socket";
265     public static final String JavaDoc SOCKETCHANNEL = "SocketChannel";
266
267     // POA related policies
268
public static final String JavaDoc PERSISTENT_SERVER_PORT_PROPERTY = SUN_PREFIX + "POA.ORBPersistentServerPort" ;
269     public static final String JavaDoc SERVER_ID_PROPERTY = SUN_PREFIX + "POA.ORBServerId" ;
270     public static final String JavaDoc BAD_SERVER_ID_HANDLER_CLASS_PROPERTY
271                                                             = SUN_PREFIX + "POA.ORBBadServerIdHandlerClass" ;
272     public static final String JavaDoc ACTIVATED_PROPERTY = SUN_PREFIX + "POA.ORBActivated" ;
273     public static final String JavaDoc SERVER_NAME_PROPERTY = SUN_PREFIX + "POA.ORBServerName" ;
274
275     // Server Properties; e.g. when properties passed to ORB activated
276
// servers
277

278     public static final String JavaDoc SERVER_DEF_VERIFY_PROPERTY = SUN_PREFIX + "activation.ORBServerVerify" ;
279
280     // This one is an exception, but it may be externally visible
281
public static final String JavaDoc SUN_LC_PREFIX = "com.sun.corba." ;
282
283     // Necessary for package renaming to work correctly
284
public static final String JavaDoc SUN_LC_VERSION_PREFIX = "com.sun.corba.se.";
285
286     public static final String JavaDoc JTS_CLASS_PROPERTY = SUN_LC_VERSION_PREFIX + "CosTransactions.ORBJTSClass" ;
287
288     // Property for enabling ORB's use of Java serialization.
289
public static final String JavaDoc ENABLE_JAVA_SERIALIZATION_PROPERTY =
290     SUN_PREFIX + "encoding.ORBEnableJavaSerialization";
291
292     // Constants for ORB prefixes **************************************************************
293

294     public static final String JavaDoc PI_ORB_INITIALIZER_CLASS_PREFIX =
295     "org.omg.PortableInterceptor.ORBInitializerClass.";
296
297     public static final String JavaDoc USE_DYNAMIC_STUB_PROPERTY = SUN_PREFIX + "ORBUseDynamicStub" ;
298
299     public static final String JavaDoc DYNAMIC_STUB_FACTORY_FACTORY_CLASS =
300     SUN_PREFIX + "ORBDynamicStubFactoryFactoryClass" ;
301     
302     // Constants for NameService properties ************************************
303

304     public static final int DEFAULT_INITIAL_PORT = 900;
305
306     public static final String JavaDoc DEFAULT_INS_HOST = "localhost";
307
308     public static final int DEFAULT_INS_PORT = 2089;
309
310     public static final int DEFAULT_INS_GIOP_MAJOR_VERSION = 1;
311
312     // http://www.omg.org/cgi-bin/doc?ptc/00-08-07 [ Section 13.6.7.3 ]
313
// defines the default GIOP minor version to be 0.
314
public static final int DEFAULT_INS_GIOP_MINOR_VERSION = 0;
315
316
317     // Constants for INS properties ********************************************
318

319     // GIOP Version number for validation of INS URL format addresses
320
public static final int MAJORNUMBER_SUPPORTED = 1;
321     public static final int MINORNUMBERMAX = 2;
322
323     // Subcontract's differentiation using the TRANSIENT and PERSISTENT
324
// Name Service Property.
325
public static final int TRANSIENT = 1;
326     public static final int PERSISTENT = 2;
327
328     // Constants for ORBD properties ****************************************************************
329

330     // These properties are never passed on ORB init: they are only passed to ORBD.
331

332     public static final String JavaDoc DB_DIR_PROPERTY = SUN_PREFIX + "activation.DbDir" ;
333     public static final String JavaDoc DB_PROPERTY = SUN_PREFIX + "activation.db" ;
334     public static final String JavaDoc ORBD_PORT_PROPERTY = SUN_PREFIX + "activation.Port" ;
335     public static final String JavaDoc SERVER_POLLING_TIME = SUN_PREFIX + "activation.ServerPollingTime";
336     public static final String JavaDoc SERVER_STARTUP_DELAY = SUN_PREFIX + "activation.ServerStartupDelay";
337
338     public static final int DEFAULT_ACTIVATION_PORT = 1049 ;
339
340     // If RI is starting the NameService then they would indicate that by
341
// passing the RI flag. That would start a Persistent Port to listen to
342
// INS request.
343
public static final int RI_NAMESERVICE_PORT = 1050;
344
345     public static final int DEFAULT_SERVER_POLLING_TIME = 1000;
346
347     public static final int DEFAULT_SERVER_STARTUP_DELAY = 1000;
348
349
350     //***************** Constants for Logging ****************
351

352     public static final String JavaDoc LOG_LEVEL_PROPERTY = SUN_PREFIX + "ORBLogLevel";
353
354     public static final String JavaDoc LOG_RESOURCE_FILE =
355         "com.sun.corba.se.impl.logging.LogStrings";
356
357     // Constants for initial references *************************************************************
358

359     public static final String JavaDoc TRANSIENT_NAME_SERVICE_NAME = "TNameService" ;
360     public static final String JavaDoc PERSISTENT_NAME_SERVICE_NAME = "NameService" ;
361
362     // A large Number to make sure that other ServerIds doesn't collide
363
// with NameServer Persistent Server Id
364
public static final String JavaDoc NAME_SERVICE_SERVER_ID = "1000000" ;
365
366     public static final String JavaDoc ROOT_POA_NAME = "RootPOA" ;
367     public static final String JavaDoc POA_CURRENT_NAME = "POACurrent" ;
368     public static final String JavaDoc SERVER_ACTIVATOR_NAME = "ServerActivator" ;
369     public static final String JavaDoc SERVER_LOCATOR_NAME = "ServerLocator" ;
370     public static final String JavaDoc SERVER_REPOSITORY_NAME = "ServerRepository" ;
371     public static final String JavaDoc INITIAL_NAME_SERVICE_NAME= "InitialNameService" ;
372     public static final String JavaDoc TRANSACTION_CURRENT_NAME = "TransactionCurrent" ;
373     public static final String JavaDoc DYN_ANY_FACTORY_NAME = "DynAnyFactory" ;
374
375     // New for Portable Interceptors
376
public static final String JavaDoc PI_CURRENT_NAME = "PICurrent" ;
377     public static final String JavaDoc CODEC_FACTORY_NAME = "CodecFactory" ;
378
379     // Constants for ORBD DB ***********************************************************************
380

381     public static final String JavaDoc DEFAULT_DB_DIR = "orb.db" ;
382     public static final String JavaDoc DEFAULT_DB_NAME = "db" ;
383     public static final String JavaDoc INITIAL_ORB_DB = "initial.db" ;
384     public static final String JavaDoc SERVER_LOG_DIR = "logs" ;
385     public static final String JavaDoc ORBID_DIR_BASE = "orbids" ;
386     public static final String JavaDoc ORBID_DB_FILE_NAME = "orbids.db" ;
387
388     // Constants for ThreadPool ********************************************************************
389

390     // Default value for when inactive threads in the pool can stop running (ms)
391
public static final int DEFAULT_INACTIVITY_TIMEOUT = 120000;
392     // Default name of the threadpool
393
public static final String JavaDoc THREADPOOL_DEFAULT_NAME = "default-threadpool";
394     // Default name of the workqueue
395
public static final String JavaDoc WORKQUEUE_DEFAULT_NAME = "default-workqueue";
396
397     // Constants for minor code bases **************************************************************
398
// This is the value that pre-Merlin Sun ORBs incorrectly used. We preserve this
399
// here for backwards compatibility, but note that the current ORB must never
400
// create a BAD_PARAM system exception with this minor code.
401
public static final int LEGACY_SUN_NOT_SERIALIZABLE = SUNVMCID.value + 1 ;
402
403     // Code Set related *******************************************************
404

405     // If we don't always send the code set context, there's a possibility
406
// of failure when fragments of a smaller request are interleved with
407
// those of a first request with other large service contexts.
408
//
409
public static final boolean DEFAULT_ALWAYS_SEND_CODESET_CTX = true;
410     public static final String JavaDoc ALWAYS_SEND_CODESET_CTX_PROPERTY
411         = SUN_PREFIX + "codeset.AlwaysSendCodeSetCtx";
412
413     // Use byte order markers in streams when applicable? This won't apply to
414
// GIOP 1.1 due to limitations in the CDR encoding.
415
public static final boolean DEFAULT_USE_BYTE_ORDER_MARKERS = true;
416     public static final String JavaDoc USE_BOMS = SUN_PREFIX + "codeset.UseByteOrderMarkers";
417
418     // Use byte order markers in encapsulations when applicable?
419
public static final boolean DEFAULT_USE_BYTE_ORDER_MARKERS_IN_ENCAPS = false;
420     public static final String JavaDoc USE_BOMS_IN_ENCAPS = SUN_PREFIX + "codeset.UseByteOrderMarkersInEncaps";
421
422     // The CHAR_CODESETS and WCHAR_CODESETS allow the user to override the default
423
// connection code sets. The value should be a comma separated list of OSF
424
// registry numbers. The first number in the list will be the native code
425
// set.
426
//
427
// Number can be specified as hex if preceded by 0x, otherwise they are
428
// interpreted as decimal.
429
//
430
// Code sets that we accept currently (see core/OSFCodeSetRegistry):
431
//
432
// char/string:
433
//
434
// ISO8859-1 (Latin-1) 0x00010001
435
// ISO646 (ASCII) 0x00010020
436
// UTF-8 0x05010001
437
//
438
// wchar/string:
439
//
440
// UTF-16 0x00010109
441
// UCS-2 0x00010100
442
// UTF-8 0x05010001
443
//
444
// Note: The ORB will let you assign any of the above values to
445
// either of the following properties, but the above assignments
446
// are the only ones that won't get you into trouble.
447
public static final String JavaDoc CHAR_CODESETS = SUN_PREFIX + "codeset.charsets";
448     public static final String JavaDoc WCHAR_CODESETS = SUN_PREFIX + "codeset.wcharsets";
449
450     // Constants to make stream format version code easier to read
451
public static final byte STREAM_FORMAT_VERSION_1 = (byte)1;
452     public static final byte STREAM_FORMAT_VERSION_2 = (byte)2;
453 }
454
Popular Tags