1 |
/* ObjectStreamConstants.java -- Interface containing constant values |
/* ObjectStreamConstants.java -- Interface containing constant values |
2 |
used in reading and writing serialized objects |
used in reading and writing serialized objects |
3 |
Copyright (C) 1998, 1999 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2003 Free Software Foundation, Inc. |
4 |
|
|
5 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
6 |
|
|
40 |
package java.io; |
package java.io; |
41 |
|
|
42 |
/** |
/** |
43 |
This interface contains constants that are used in object |
* This interface contains constants that are used in object |
44 |
serialization. This interface is used by ObjectOutputStream, |
* serialization. This interface is used by <code>ObjectOutputStream</code>, |
45 |
ObjectInputStream, ObjectStreamClass, and possibly other classes. |
* <code>ObjectInputStream</code>, and <code>ObjectStreamClass</code>. |
46 |
The values for these constants are specified in Javasoft's "Object |
* The values for these constants are specified by the Java library |
47 |
Serialization Specification" TODO: add reference |
* specification. |
48 |
*/ |
*/ |
49 |
public interface ObjectStreamConstants |
public interface ObjectStreamConstants |
50 |
{ |
{ |
51 |
|
// FIXME: Javadoc comment these values. |
52 |
public final static int PROTOCOL_VERSION_1 = 1; |
public final static int PROTOCOL_VERSION_1 = 1; |
53 |
public final static int PROTOCOL_VERSION_2 = 2; |
public final static int PROTOCOL_VERSION_2 = 2; |
54 |
|
|
86 |
final static SerializablePermission SUBCLASS_IMPLEMENTATION_PERMISSION |
final static SerializablePermission SUBCLASS_IMPLEMENTATION_PERMISSION |
87 |
= new SerializablePermission("enableSubclassImplementation"); |
= new SerializablePermission("enableSubclassImplementation"); |
88 |
} |
} |
89 |
|
|