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

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 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.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.