Reads a count corresponding to a serialized map, multiset, or multimap. It returns the size of a map serialized by #writeMap(Map, ObjectOutputStream), the number of distinct elements in a multiset serialized by #writeMultiset(Multiset, ObjectOutputStream), or the number of distinct k
(ObjectInputStream stream)
| 49 | */ |
| 50 | |
| 51 | static int readCount(ObjectInputStream stream) throws IOException { |
| 52 | return stream.readInt(); |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Stores the contents of a map in an output stream, as part of serialization. |
no test coverage detected