1 7 8 package java.io; 9 10 17 public interface ObjectStreamConstants { 18 19 22 final static short STREAM_MAGIC = (short)0xaced; 23 24 27 final static short STREAM_VERSION = 5; 28 29 31 32 35 final static byte TC_BASE = 0x70; 36 37 40 final static byte TC_NULL = (byte)0x70; 41 42 45 final static byte TC_REFERENCE = (byte)0x71; 46 47 50 final static byte TC_CLASSDESC = (byte)0x72; 51 52 55 final static byte TC_OBJECT = (byte)0x73; 56 57 60 final static byte TC_STRING = (byte)0x74; 61 62 65 final static byte TC_ARRAY = (byte)0x75; 66 67 70 final static byte TC_CLASS = (byte)0x76; 71 72 76 final static byte TC_BLOCKDATA = (byte)0x77; 77 78 81 final static byte TC_ENDBLOCKDATA = (byte)0x78; 82 83 86 final static byte TC_RESET = (byte)0x79; 87 88 92 final static byte TC_BLOCKDATALONG= (byte)0x7A; 93 94 97 final static byte TC_EXCEPTION = (byte)0x7B; 98 99 102 final static byte TC_LONGSTRING = (byte)0x7C; 103 104 107 final static byte TC_PROXYCLASSDESC = (byte)0x7D; 108 109 112 final static byte TC_ENUM = (byte)0x7E; 113 114 117 final static byte TC_MAX = (byte)0x7E; 118 119 122 final static int baseWireHandle = 0x7e0000; 123 124 125 126 127 128 132 final static byte SC_WRITE_METHOD = 0x01; 133 134 142 final static byte SC_BLOCK_DATA = 0x08; 143 144 147 final static byte SC_SERIALIZABLE = 0x02; 148 149 152 final static byte SC_EXTERNALIZABLE = 0x04; 153 154 157 final static byte SC_ENUM = 0x10; 158 159 160 161 162 163 171 final static SerializablePermission SUBSTITUTION_PERMISSION = 172 new SerializablePermission ("enableSubstitution"); 173 174 181 final static SerializablePermission SUBCLASS_IMPLEMENTATION_PERMISSION = 182 new SerializablePermission ("enableSubclassImplementation"); 183 194 public final static int PROTOCOL_VERSION_1 = 1; 195 196 197 215 public final static int PROTOCOL_VERSION_2 = 2; 216 } 217 | Popular Tags |