java.io.ObjectStreamClass
java.lang.Object
None
None
New as of JDK 1.1
The ObjectStreamClass class represents a Java class during object serialization. When an object is deserialized, its class information is read into an ObjectStreamClass, which is then resolved to a Class if possible. An ObjectStreamClass instance contains the name and version information for a class.
public class java.io.ObjectStreamClass extends java.lang.Object implements java.io.Serializable { // Class Methods public static ObjectStreamClass lookup(Class cl); // Instance Methods public Class forClass(); public String getName(); public long getSerialVersionUID(); public String toString(); }
The Class to find.
An ObjectStreamClass that corresponds to the given Class.
This method finds an ObjectStreamClass for the given Class. If the appropriate ObjectStreamClass does not already exist, this method creates an ObjectStreamClass for the given Class. The method returns null if cl is not serializable.
The Class that corresponds to this ObjectStreamClass.
This method returns the Class in the run-time system that corresponds to this ObjectStreamClass. If there is no corresponding class, null is returned.
The class name.
This method returns the name of the class this ObjectStreamClass represents.
The class version.
This method returns the version of the class this ObjectStreamClass represents.
A string representation of this object.
Object.toString()
This method returns a string that contains the class name and version information for this ObjectStreamClass.
Method | Inherited From | Method | Inherited From |
---|---|---|---|
clone() |
Object |
equals(Object) |
Object |
finalize() |
Object |
getClass() |
Object |
hashCode() |
Object |
notify() |
Object |
notifyAll() |
Object |
wait() |
Object |
wait(long) |
Object |
wait(long, int) |
Object |
Class, ObjectInputStream, ObjectOutputStream, Serializable
This HTML Help has been published using the chm2web software. |