Class ObjectStreamClass_1_3_1

java.lang.Object
com.sun.corba.se.impl.orbutil.ObjectStreamClass_1_3_1
All Implemented Interfaces:
Serializable

public class ObjectStreamClass_1_3_1 extends Object implements Serializable
A ObjectStreamClass_1_3_1 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_1_3_1 for a specific class loaded in this Java VM can be found using the lookup method.
Since:
JDK1.1
Author:
Roger Riggs
See Also:
  • Field Details

    • kDefaultUID

      public static final long kDefaultUID
      See Also:
    • NO_FIELDS

      public static final com.sun.corba.se.impl.orbutil.ObjectStreamField[] NO_FIELDS
      Set serialPersistentFields of a Serializable class to this value to denote that the class has no Serializable fields.
  • Method Details

    • getName

      public final String getName()
      The name of the class described by this descriptor.
    • getSerialVersionUID

      public static final long getSerialVersionUID(Class<?> clazz)
      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.
    • getSerialVersionUID

      public final 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.
    • getSerialVersionUIDStr

      public final String getSerialVersionUIDStr()
      Return the serialVersionUID string 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.
    • getActualSerialVersionUID

      public static final long getActualSerialVersionUID(Class<?> clazz)
      Return the actual (computed) serialVersionUID for this class.
    • getActualSerialVersionUID

      public final long getActualSerialVersionUID()
      Return the actual (computed) serialVersionUID for this class.
    • getActualSerialVersionUIDStr

      public final String getActualSerialVersionUIDStr()
      Return the actual (computed) serialVersionUID for this class.
    • forClass

      public final 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.
    • getFields

      public com.sun.corba.se.impl.orbutil.ObjectStreamField[] getFields()
      Return an array of the fields of this serializable class.
      Returns:
      an array containing an element for each persistent field of this class. Returns an array of length zero if there are no fields.
      Since:
      JDK1.2
    • hasField

      public boolean hasField(ValueMember field)
    • getField

      public final com.sun.corba.se.impl.orbutil.ObjectStreamField getField(String name)
      Get the field of this class by name.
      Returns:
      The ObjectStreamField object of the named field or null if there is no such named field.
    • writeReplace

      public Serializable writeReplace(Serializable value)
    • readResolve

      public Object readResolve(Object value)
    • toString

      public final String toString()
      Return a string describing this ObjectStreamClass_1_3_1.
      Overrides:
      toString in class Object