home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / main.bin / ObjectStreamConstants.java < prev    next >
Text File  |  1997-05-20  |  2KB  |  59 lines

  1. /*
  2.  * @(#)ObjectStreamConstants.java    1.9 97/02/05
  3.  * 
  4.  * Copyright (c) 1995, 1996 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  * CopyrightVersion 1.1_beta
  20.  */
  21.  
  22. package java.io;
  23.  
  24. /**
  25.  *
  26.  * @author  unascribed
  27.  * @version 1.9, 02/05/97
  28.  */
  29. interface ObjectStreamConstants {
  30.     final static short STREAM_MAGIC = (short)0xaced;
  31.     final static short STREAM_VERSION = 5;
  32.  
  33.     /* Each item in the stream is preceded by a tag
  34.      */
  35.     final static byte TC_BASE = 0x70;
  36.     final static byte TC_NULL =     (byte)0x70; // Null object reference
  37.     final static byte TC_REFERENCE =    (byte)0x71; // Reference to prev object
  38.     final static byte TC_CLASSDESC =     (byte)0x72; // Class Descriptor
  39.     final static byte TC_OBJECT =     (byte)0x73; // new object
  40.     final static byte TC_STRING =     (byte)0x74; // new String
  41.     final static byte TC_ARRAY =     (byte)0x75; // new Array
  42.     final static byte TC_CLASS =     (byte)0x76; // Reference to Class 
  43.     final static byte TC_BLOCKDATA =     (byte)0x77; // Block of optional data
  44.     final static byte TC_ENDBLOCKDATA =    (byte)0x78; // End of optional data
  45.     final static byte TC_RESET =     (byte)0x79; // Reset stream context
  46.     final static byte TC_BLOCKDATALONG= (byte)0x7A; // long block data
  47.     final static byte TC_EXCEPTION =     (byte)0x7B; // exception during write
  48.     final static byte TC_MAX =         (byte)0x7B;
  49.  
  50.     /* First wire handle to be assigned. */
  51.     final static int baseWireHandle = 0x7e0000;
  52.  
  53.     /* Flag bits for ObjectStreamClasses in Stream. */
  54.     final static byte SC_WRITE_METHOD = 0x01;
  55.  
  56.     final static byte SC_SERIALIZABLE = 0x02;
  57.     final static byte SC_EXTERNALIZABLE = 0x04;
  58. }
  59.