java.io

Interface ObjectStreamConstants

Known Implementing Classes:
ObjectInputStream, ObjectOutputStream

public interface ObjectStreamConstants

This interface contains constants that are used in object serialization. This interface is used by ObjectOutputStream, ObjectInputStream, and ObjectStreamClass. The values for these constants are specified by the Java library specification.

Field Summary

static int
PROTOCOL_VERSION_1
static int
PROTOCOL_VERSION_2
static byte
SC_BLOCK_DATA
static byte
SC_EXTERNALIZABLE
static byte
SC_SERIALIZABLE
static byte
SC_WRITE_METHOD
static short
STREAM_MAGIC
static short
STREAM_VERSION
static SerializablePermission
SUBCLASS_IMPLEMENTATION_PERMISSION
static SerializablePermission
SUBSTITUTION_PERMISSION
static byte
TC_ARRAY
static byte
TC_BASE
static byte
TC_BLOCKDATA
static byte
TC_BLOCKDATALONG
static byte
TC_CLASS
static byte
TC_CLASSDESC
static byte
TC_ENDBLOCKDATA
static byte
TC_EXCEPTION
static byte
TC_LONGSTRING
static byte
TC_MAX
static byte
TC_NULL
static byte
TC_OBJECT
static byte
TC_PROXYCLASSDESC
static byte
TC_REFERENCE
static byte
TC_RESET
static byte
TC_STRING
static int
baseWireHandle

Field Details

PROTOCOL_VERSION_1

public static final int PROTOCOL_VERSION_1
Field Value:
1

PROTOCOL_VERSION_2

public static final int PROTOCOL_VERSION_2
Field Value:
2

SC_BLOCK_DATA

public static final byte SC_BLOCK_DATA
Field Value:
8

SC_EXTERNALIZABLE

public static final byte SC_EXTERNALIZABLE
Field Value:
4

SC_SERIALIZABLE

public static final byte SC_SERIALIZABLE
Field Value:
2

SC_WRITE_METHOD

public static final byte SC_WRITE_METHOD
Field Value:
1

STREAM_MAGIC

public static final short STREAM_MAGIC
Field Value:
-21267

STREAM_VERSION

public static final short STREAM_VERSION
Field Value:
5

SUBCLASS_IMPLEMENTATION_PERMISSION

public static final SerializablePermission SUBCLASS_IMPLEMENTATION_PERMISSION

SUBSTITUTION_PERMISSION

public static final SerializablePermission SUBSTITUTION_PERMISSION

TC_ARRAY

public static final byte TC_ARRAY
Field Value:
117

TC_BASE

public static final byte TC_BASE
Field Value:
112

TC_BLOCKDATA

public static final byte TC_BLOCKDATA
Field Value:
119

TC_BLOCKDATALONG

public static final byte TC_BLOCKDATALONG
Field Value:
122

TC_CLASS

public static final byte TC_CLASS
Field Value:
118

TC_CLASSDESC

public static final byte TC_CLASSDESC
Field Value:
114

TC_ENDBLOCKDATA

public static final byte TC_ENDBLOCKDATA
Field Value:
120

TC_EXCEPTION

public static final byte TC_EXCEPTION
Field Value:
123

TC_LONGSTRING

public static final byte TC_LONGSTRING
Field Value:
124

TC_MAX

public static final byte TC_MAX
Field Value:
125

TC_NULL

public static final byte TC_NULL
Field Value:
112

TC_OBJECT

public static final byte TC_OBJECT
Field Value:
115

TC_PROXYCLASSDESC

public static final byte TC_PROXYCLASSDESC
Field Value:
125

TC_REFERENCE

public static final byte TC_REFERENCE
Field Value:
113

TC_RESET

public static final byte TC_RESET
Field Value:
121

TC_STRING

public static final byte TC_STRING
Field Value:
116

baseWireHandle

public static final int baseWireHandle
Field Value:
8257536

ObjectStreamConstants.java -- Interface containing constant values used in reading and writing serialized objects Copyright (C) 1998, 1999, 2003 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.