Class java.io.ObjectStreamClass
All Packages Class Hierarchy This Package Previous Next Index
Class java.io.ObjectStreamClass
java.lang.Object
|
+----java.io.ObjectStreamClass
public class ObjectStreamClass
extends Object
implements Serializable
A ObjectStreamClass describes a class that can be serialized to a stream
or a class that was serialized to a stream. It contains the name
and the serialVersionUID of the class.
The ObjectStreamClass for a specific class loaded in this Java VM can
be found using the lookup method.
forClass()
Return the class in the local VM that this version is mapped to.
getName()
The name of the class described by this descriptor.
getSerialVersionUID()
Return the serialVersionUID for this class.
lookup(Class)
Find the descriptor for a class that can be serialized.
toString()
Return a string describing this ObjectStreamClass.
lookup
public static ObjectStreamClass lookup(Class cl)
Find the descriptor for a class that can be serialized. Null
is returned if the specified class does not implement
java.io.Serializable or java.io.Externalizable.
getName
public String getName()
The name of the class described by this descriptor.
getSerialVersionUID
public long getSerialVersionUID()
Return the serialVersionUID for this class.
The serialVersionUID defines a set of classes all with the same name
that have evolved from a common root class and agree to be serialized
and deserialized using a common format.
forClass
public Class forClass()
Return the class in the local VM that this version is mapped to.
Null is returned if there is no corresponding local class.
toString
public String toString()
Return a string describing this ObjectStreamClass.
Overrides:
toString in class Object
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature - Version 1.1.7 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1995-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Wyszukiwarka
Podobne podstrony:
java io ObjectInputStreamjava io ObjectOutputStreamjava io ObjectOutputjava io ObjectStreamExceptionjava io ObjectInputjava io ObjectInputValidationjava io InvalidClassExceptionjava io SyncFailedExceptionjava io SequenceInputStreamjava io BufferedInputStreamjava io BufferedWriterjava io PushbackInputStreamjava io BufferedOutputStreamjava io InvalidObjectExceptionjava io FileDescriptorjava io FilterInputStreamjava io StreamTokenizerjava io PipedReaderjava io OutputStreamwięcej podobnych podstron