ObjectStreamConstants
public
interface
ObjectStreamConstants
| java.io.ObjectStreamConstants |
|
|
Constants written into the Object Serialization Stream.
Summary
Constants | |
|---|---|
int |
PROTOCOL_VERSION_1
A Stream Protocol Version. |
int |
PROTOCOL_VERSION_2
A Stream Protocol Version. |
byte |
SC_BLOCK_DATA
Bit mask for ObjectStreamClass flag. |
byte |
SC_ENUM
Bit mask for ObjectStreamClass flag. |
byte |
SC_EXTERNALIZABLE
Bit mask for ObjectStreamClass flag. |
byte |
SC_SERIALIZABLE
Bit mask for ObjectStreamClass flag. |
byte |
SC_WRITE_METHOD
Bit mask for ObjectStreamClass flag. |
short |
STREAM_MAGIC
Magic number that is written to the stream header. |
short |
STREAM_VERSION
Version number that is written to the stream header. |
byte |
TC_ARRAY
new Array. |
byte |
TC_BASE
First tag value. |
byte |
TC_BLOCKDATA
Block of optional data. |
byte |
TC_BLOCKDATALONG
long Block data. |
byte |
TC_CLASS
Reference to Class. |
byte |
TC_CLASSDESC
new Class Descriptor. |
byte |
TC_ENDBLOCKDATA
End of optional block data blocks for an object. |
byte |
TC_ENUM
new Enum constant. |
byte |
TC_EXCEPTION
Exception during write. |
byte |
TC_LONGSTRING
Long string. |
byte |
TC_MAX
Last tag value. |
byte |
TC_NULL
Null object reference. |
byte |
TC_OBJECT
new Object. |
byte |
TC_PROXYCLASSDESC
new Proxy Class Descriptor. |
byte |
TC_REFERENCE
Reference to an object already written into the stream. |
byte |
TC_RESET
Reset stream context. |
byte |
TC_STRING
new String. |
int |
baseWireHandle
First wire handle to be assigned. |
Fields | |
|---|---|
public
static
final
SerializablePermission |
SUBCLASS_IMPLEMENTATION_PERMISSION
Enable overriding of readObject and writeObject. |
public
static
final
SerializablePermission |
SUBSTITUTION_PERMISSION
Enable substitution of one object for another during serialization/deserialization. |
Constants
PROTOCOL_VERSION_1
int PROTOCOL_VERSION_1
A Stream Protocol Version.
All externalizable data is written in JDK 1.1 external data format after calling this method. This version is needed to write streams containing Externalizable data that can be read by pre-JDK 1.1.6 JVMs.
See also:
Constant Value: 1 (0x00000001)
PROTOCOL_VERSION_2
int PROTOCOL_VERSION_2
A Stream Protocol Version.
This protocol is written by JVM 1.2. Externalizable data is written in block data mode and is terminated with TC_ENDBLOCKDATA. Externalizable classdescriptor flags has SC_BLOCK_DATA enabled. JVM 1.1.6 and greater can read this format change. Enables writing a nonSerializable class descriptor into the stream. The serialVersionUID of a nonSerializable class is set to 0L.
See also:
Constant Value: 2 (0x00000002)
SC_BLOCK_DATA
byte SC_BLOCK_DATA
Bit mask for ObjectStreamClass flag. Indicates Externalizable data written in Block Data mode. Added for PROTOCOL_VERSION_2.
See also:
Constant Value: 8 (0x00000008)
SC_ENUM
byte SC_ENUM
Bit mask for ObjectStreamClass flag. Indicates class is an enum type.
Constant Value: 16 (0x00000010)
SC_EXTERNALIZABLE
byte SC_EXTERNALIZABLE
Bit mask for ObjectStreamClass flag. Indicates class is Externalizable.
Constant Value: 4 (0x00000004)
SC_SERIALIZABLE
byte SC_SERIALIZABLE
Bit mask for ObjectStreamClass flag. Indicates class is Serializable.
Constant Value: 2 (0x00000002)
SC_WRITE_METHOD
byte SC_WRITE_METHOD
Bit mask for ObjectStreamClass flag. Indicates a Serializable class defines its own writeObject method.
Constant Value: 1 (0x00000001)
STREAM_MAGIC
short STREAM_MAGIC
Magic number that is written to the stream header.
Constant Value: -21267 (0xffffaced)
STREAM_VERSION
short STREAM_VERSION
Version number that is written to the stream header.
Constant Value: 5 (0x00000005)
TC_BLOCKDATA
byte TC_BLOCKDATA
Block of optional data. Byte following tag indicates number of bytes in this block data.
Constant Value: 119 (0x00000077)
TC_BLOCKDATALONG
byte TC_BLOCKDATALONG
long Block data. The long following the tag indicates the number of bytes in this block data.
Constant Value: 122 (0x0000007a)
TC_CLASSDESC
byte TC_CLASSDESC
new Class Descriptor.
Constant Value: 114 (0x00000072)
TC_ENDBLOCKDATA
byte TC_ENDBLOCKDATA
End of optional block data blocks for an object.
Constant Value: 120 (0x00000078)
TC_EXCEPTION
byte TC_EXCEPTION
Exception during write.
Constant Value: 123 (0x0000007b)
TC_PROXYCLASSDESC
byte TC_PROXYCLASSDESC
new Proxy Class Descriptor.
Constant Value: 125 (0x0000007d)
TC_REFERENCE
byte TC_REFERENCE
Reference to an object already written into the stream.
Constant Value: 113 (0x00000071)
TC_RESET
byte TC_RESET
Reset stream context. All handles written into stream are reset.
Constant Value: 121 (0x00000079)
baseWireHandle
int baseWireHandle
First wire handle to be assigned.
Constant Value: 8257536 (0x007e0000)
Fields
SUBCLASS_IMPLEMENTATION_PERMISSION
SerializablePermission SUBCLASS_IMPLEMENTATION_PERMISSION
Enable overriding of readObject and writeObject.
SUBSTITUTION_PERMISSION
SerializablePermission SUBSTITUTION_PERMISSION
Enable substitution of one object for another during serialization/deserialization.
Interfaces
Classes
- BufferedInputStream
- BufferedOutputStream
- BufferedReader
- BufferedWriter
- ByteArrayInputStream
- ByteArrayOutputStream
- CharArrayReader
- CharArrayWriter
- Console
- DataInputStream
- DataOutputStream
- File
- FileDescriptor
- FileInputStream
- FileOutputStream
- FilePermission
- FileReader
- FileWriter
- FilterInputStream
- FilterOutputStream
- FilterReader
- FilterWriter
- InputStream
- InputStreamReader
- LineNumberInputStream
- LineNumberReader
- ObjectInputStream
- ObjectInputStream.GetField
- ObjectOutputStream
- ObjectOutputStream.PutField
- ObjectStreamClass
- ObjectStreamField
- OutputStream
- OutputStreamWriter
- PipedInputStream
- PipedOutputStream
- PipedReader
- PipedWriter
- PrintStream
- PrintWriter
- PushbackInputStream
- PushbackReader
- RandomAccessFile
- Reader
- SequenceInputStream
- SerializablePermission
- StreamTokenizer
- StringBufferInputStream
- StringReader
- StringWriter
- Writer
Exceptions
- CharConversionException
- EOFException
- FileNotFoundException
- InterruptedIOException
- InvalidClassException
- InvalidObjectException
- IOException
- NotActiveException
- NotSerializableException
- ObjectStreamException
- OptionalDataException
- StreamCorruptedException
- SyncFailedException
- UncheckedIOException
- UnsupportedEncodingException
- UTFDataFormatException
- WriteAbortedException
Errors

