public class ObjectStreamClass extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
CLASS_MASK |
static int |
FIELD_MASK |
static long |
kDefaultUID |
static int |
METHOD_MASK |
static ObjectStreamField[] |
NO_FIELDS
Set serialPersistentFields of a Serializable class to this value to
denote that the class has no Serializable fields.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
forClass()
Return the class in the local VM that this version is mapped to.
|
long |
getActualSerialVersionUID()
Return the actual (computed) serialVersionUID for this class.
|
static long |
getActualSerialVersionUID(Class<?> clazz)
Return the actual (computed) serialVersionUID for this class.
|
String |
getActualSerialVersionUIDStr()
Return the actual (computed) serialVersionUID for this class.
|
ObjectStreamField |
getField(String name)
Get the field of this class by name.
|
ObjectStreamField[] |
getFields()
Return an array of the fields of this serializable class.
|
String |
getName()
The name of the class described by this descriptor.
|
String |
getRMIIIOPOptionalDataRepId()
This will return null if there is no writeObject method.
|
long |
getSerialVersionUID()
Return the serialVersionUID for this class.
|
static long |
getSerialVersionUID(Class<?> clazz)
Return the serialVersionUID for this class.
|
String |
getSerialVersionUIDStr()
Return the serialVersionUID string for this class.
|
boolean |
hasField(ValueMember field) |
Object |
readResolve(Object value) |
String |
toString()
Return a string describing this ObjectStreamClass.
|
Serializable |
writeReplace(Serializable value) |
public static final long kDefaultUID
public static final int CLASS_MASK
public static final int FIELD_MASK
public static final int METHOD_MASK
public static final ObjectStreamField[] NO_FIELDS
public final String getName()
public static final long getSerialVersionUID(Class<?> clazz)
public final long getSerialVersionUID()
public final String getSerialVersionUIDStr()
public static final long getActualSerialVersionUID(Class<?> clazz)
public final long getActualSerialVersionUID()
public final String getActualSerialVersionUIDStr()
public final Class<?> forClass()
public ObjectStreamField[] getFields()
public boolean hasField(ValueMember field)
public final ObjectStreamField getField(String name)
public Serializable writeReplace(Serializable value)
public final String toString()
public final String getRMIIIOPOptionalDataRepId()
Copyright © 2019 JBoss by Red Hat. All rights reserved.