-
readObject
private void readObject(ObjectInputStream s)
throws IOException,
ClassNotFoundException
Reconstitute the SafelyHashMap instance from a stream (i.e.,
deserialize it).
- 抛出:
IOException
ClassNotFoundException
-
writeObject
private void writeObject(ObjectOutputStream s)
throws IOException
Save the state of the SafelyHashMap instance to a stream (i.e.,
serialize it).
- 序列数据:
- The capacity of the SafelyHashMap (the length of the
bucket array) is emitted (int), followed by the size
(an int, the number of key-value mappings), followed by the
key (Object) and value (Object) for each key-value mapping.
The key-value mappings are emitted in no particular order.
- 抛出:
IOException