During object input, convert this deserialized enumeration instance to
the proper enumeration value defined in the enumeration attribute class.
Returns:
The enumeration singleton value stored at index
i-
L in the enumeration value table returned by
{@link #getEnumValueTable()
getEnumValueTable()
},
where
i is this enumeration value's integer value and
L is the value returned by {@link #getOffset()
getOffset()
}.
Throws:
-
ObjectStreamException - if the stream can't be deserialised
-
InvalidObjectException - Thrown if the enumeration value table is null, this enumeration
value's integer value does not correspond to an element in the
enumeration value table, or the corresponding element in the
enumeration value table is null. (Note: {@link
java.io.InvalidObjectException InvalidObjectException} is a subclass
of {@link java.io.ObjectStreamException ObjectStreamException}, which
readResolve()
is declared to throw.)