(DataInputStream input)
| 4355 | } |
| 4356 | |
| 4357 | void read(DataInputStream input) throws IOException { |
| 4358 | int count = input.readInt(); |
| 4359 | //System.out.println("found " + count + " entries in category map"); |
| 4360 | dataToIndex = new HashMap<>(count); |
| 4361 | for (int i = 0; i < count; i++) { |
| 4362 | String str = input.readUTF(); |
| 4363 | //System.out.println(i + " " + str); |
| 4364 | dataToIndex.put(str, i); |
| 4365 | indexToData.add(str); |
| 4366 | } |
| 4367 | } |
| 4368 | } |
| 4369 | |
| 4370 |
no test coverage detected