954 |
|
* Saves this queue to a stream (that is, serializes it). |
955 |
|
* |
956 |
|
* @param s the stream |
957 |
+ |
* @throws java.io.IOException if an I/O error occurs |
958 |
|
* @serialData The capacity is emitted (int), followed by all of |
959 |
|
* its elements (each an {@code Object}) in the proper order, |
960 |
|
* followed by a null |
981 |
|
/** |
982 |
|
* Reconstitutes this queue from a stream (that is, deserializes it). |
983 |
|
* @param s the stream |
984 |
+ |
* @throws ClassNotFoundException if the class of a serialized object |
985 |
+ |
* could not be found |
986 |
+ |
* @throws java.io.IOException if an I/O error occurs |
987 |
|
*/ |
988 |
|
private void readObject(java.io.ObjectInputStream s) |
989 |
|
throws java.io.IOException, ClassNotFoundException { |