772 |
|
} |
773 |
|
|
774 |
|
/** |
775 |
< |
* Save the state of the {@code ArrayList} instance to a stream (that |
776 |
< |
* is, serialize it). |
775 |
> |
* Saves the state of the {@code ArrayList} instance to a stream |
776 |
> |
* (that is, serializes it). |
777 |
|
* |
778 |
+ |
* @param s the stream |
779 |
+ |
* @throws java.io.IOException if an I/O error occurs |
780 |
|
* @serialData The length of the array backing the {@code ArrayList} |
781 |
|
* instance is emitted (int), followed by all of its elements |
782 |
|
* (each an {@code Object}) in the proper order. |
783 |
|
*/ |
784 |
|
private void writeObject(java.io.ObjectOutputStream s) |
785 |
< |
throws java.io.IOException{ |
785 |
> |
throws java.io.IOException { |
786 |
|
// Write out element count, and any hidden stuff |
787 |
|
int expectedModCount = modCount; |
788 |
|
s.defaultWriteObject(); |
801 |
|
} |
802 |
|
|
803 |
|
/** |
804 |
< |
* Reconstitute the {@code ArrayList} instance from a stream (that is, |
805 |
< |
* deserialize it). |
804 |
> |
* Reconstitutes the {@code ArrayList} instance from a stream (that is, |
805 |
> |
* deserializes it). |
806 |
> |
* @param s the stream |
807 |
> |
* @throws ClassNotFoundException if the class of a serialized object |
808 |
> |
* could not be found |
809 |
> |
* @throws java.io.IOException if an I/O error occurs |
810 |
|
*/ |
811 |
|
private void readObject(java.io.ObjectInputStream s) |
812 |
|
throws java.io.IOException, ClassNotFoundException { |