Java Doc for ObjectStreamConstants.java in  » JDK-Core » io-nio » java » io » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. JDK Core
2. JDK Modules
3. JDK Modules com.sun
4. JDK Modules com.sun.java
5. JDK Modules Platform
6. JDK Modules sun
7. Open Source Build
8. Open Source Graphic Library
9. Open Source IDE Eclipse
10. Open Source J2EE
11. Open Source JDBC Driver
12. Open Source Library
13. Open Source Library Database
14. Open Source Net
15. Open Source Script
16. Science
17. Security
18. Sevlet Container
19. SUN GlassFish
20. Swing Library
21. Web Services apache cxf 2.0.1
22. Web Services AXIS2
23. XML
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Java Source Code / Java Documentation » JDK Core » io nio » java.io 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.io.ObjectStreamConstants

All known Subclasses:   java.io.ObjectInputStream,  java.io.ObjectOutputStream,
ObjectStreamConstants
public interface ObjectStreamConstants (Code)
Constants written into the Object Serialization Stream.
author:
   unascribed
version:
   1.42, 05/05/07
since:
   JDK 1.1


Field Summary
final public static  intPROTOCOL_VERSION_1
     A Stream Protocol Version.
final public static  intPROTOCOL_VERSION_2
     A Stream Protocol Version.
final static  byteSC_BLOCK_DATA
     Bit mask for ObjectStreamClass flag.
final static  byteSC_ENUM
     Bit mask for ObjectStreamClass flag.
final static  byteSC_EXTERNALIZABLE
     Bit mask for ObjectStreamClass flag.
final static  byteSC_SERIALIZABLE
     Bit mask for ObjectStreamClass flag.
final static  byteSC_WRITE_METHOD
     Bit mask for ObjectStreamClass flag.
final static  shortSTREAM_MAGIC
     Magic number that is written to the stream header.
final static  shortSTREAM_VERSION
     Version number that is written to the stream header.
final static  SerializablePermissionSUBCLASS_IMPLEMENTATION_PERMISSION
     Enable overriding of readObject and writeObject.
final static  SerializablePermissionSUBSTITUTION_PERMISSION
     Enable substitution of one object for another during serialization/deserialization.
final static  byteTC_ARRAY
     new Array.
final static  byteTC_BASE
     First tag value.
final static  byteTC_BLOCKDATA
     Block of optional data.
final static  byteTC_BLOCKDATALONG
     long Block data.
final static  byteTC_CLASS
     Reference to Class.
final static  byteTC_CLASSDESC
     new Class Descriptor.
final static  byteTC_ENDBLOCKDATA
     End of optional block data blocks for an object.
final static  byteTC_ENUM
     new Enum constant.
final static  byteTC_EXCEPTION
     Exception during write.
final static  byteTC_LONGSTRING
     Long string.
final static  byteTC_MAX
     Last tag value.
final static  byteTC_NULL
     Null object reference.
final static  byteTC_OBJECT
     new Object.
final static  byteTC_PROXYCLASSDESC
     new Proxy Class Descriptor.
final static  byteTC_REFERENCE
     Reference to an object already written into the stream.
final static  byteTC_RESET
     Reset stream context.
final static  byteTC_STRING
     new String.
final static  intbaseWireHandle
     First wire handle to be assigned.



Field Detail
PROTOCOL_VERSION_1
final public static int PROTOCOL_VERSION_1(Code)
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:   java.io.ObjectOutputStream.useProtocolVersion(int)
since:
   1.2




PROTOCOL_VERSION_2
final public static int PROTOCOL_VERSION_2(Code)
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:   java.io.ObjectOutputStream.useProtocolVersion(int)
See Also:   ObjectStreamConstants.SC_BLOCK_DATA
since:
   1.2




SC_BLOCK_DATA
final static byte SC_BLOCK_DATA(Code)
Bit mask for ObjectStreamClass flag. Indicates Externalizable data written in Block Data mode. Added for PROTOCOL_VERSION_2.
See Also:   ObjectStreamConstants.PROTOCOL_VERSION_2
since:
   1.2



SC_ENUM
final static byte SC_ENUM(Code)
Bit mask for ObjectStreamClass flag. Indicates class is an enum type.
since:
   1.5



SC_EXTERNALIZABLE
final static byte SC_EXTERNALIZABLE(Code)
Bit mask for ObjectStreamClass flag. Indicates class is Externalizable.



SC_SERIALIZABLE
final static byte SC_SERIALIZABLE(Code)
Bit mask for ObjectStreamClass flag. Indicates class is Serializable.



SC_WRITE_METHOD
final static byte SC_WRITE_METHOD(Code)
Bit mask for ObjectStreamClass flag. Indicates a Serializable class defines its own writeObject method.



STREAM_MAGIC
final static short STREAM_MAGIC(Code)
Magic number that is written to the stream header.



STREAM_VERSION
final static short STREAM_VERSION(Code)
Version number that is written to the stream header.



SUBCLASS_IMPLEMENTATION_PERMISSION
final static SerializablePermission SUBCLASS_IMPLEMENTATION_PERMISSION(Code)
Enable overriding of readObject and writeObject.
See Also:   java.io.ObjectOutputStream.writeObjectOverride(Object)
See Also:   java.io.ObjectInputStream.readObjectOverride
since:
   1.2



SUBSTITUTION_PERMISSION
final static SerializablePermission SUBSTITUTION_PERMISSION(Code)
Enable substitution of one object for another during serialization/deserialization.
See Also:   java.io.ObjectOutputStream.enableReplaceObject(boolean)
See Also:   java.io.ObjectInputStream.enableResolveObject(boolean)
since:
   1.2



TC_ARRAY
final static byte TC_ARRAY(Code)
new Array.



TC_BASE
final static byte TC_BASE(Code)
First tag value.



TC_BLOCKDATA
final static byte TC_BLOCKDATA(Code)
Block of optional data. Byte following tag indicates number of bytes in this block data.



TC_BLOCKDATALONG
final static byte TC_BLOCKDATALONG(Code)
long Block data. The long following the tag indicates the number of bytes in this block data.



TC_CLASS
final static byte TC_CLASS(Code)
Reference to Class.



TC_CLASSDESC
final static byte TC_CLASSDESC(Code)
new Class Descriptor.



TC_ENDBLOCKDATA
final static byte TC_ENDBLOCKDATA(Code)
End of optional block data blocks for an object.



TC_ENUM
final static byte TC_ENUM(Code)
new Enum constant.
since:
   1.5



TC_EXCEPTION
final static byte TC_EXCEPTION(Code)
Exception during write.



TC_LONGSTRING
final static byte TC_LONGSTRING(Code)
Long string.



TC_MAX
final static byte TC_MAX(Code)
Last tag value.



TC_NULL
final static byte TC_NULL(Code)
Null object reference.



TC_OBJECT
final static byte TC_OBJECT(Code)
new Object.



TC_PROXYCLASSDESC
final static byte TC_PROXYCLASSDESC(Code)
new Proxy Class Descriptor.



TC_REFERENCE
final static byte TC_REFERENCE(Code)
Reference to an object already written into the stream.



TC_RESET
final static byte TC_RESET(Code)
Reset stream context. All handles written into stream are reset.



TC_STRING
final static byte TC_STRING(Code)
new String.



baseWireHandle
final static int baseWireHandle(Code)
First wire handle to be assigned.





www.__j___a___v_a_2___s___.___c__om_ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.