MCPcopy Create free account
hub / github.com/GateNLP/gate-core / readObject

Method readObject

src/main/java/gate/util/RBTreeMap.java:1550–1560  ·  view source on GitHub ↗

Reconstitute the RBTreeMap instance from a stream (i.e., deserialize it).

(final java.io.ObjectInputStream s)

Source from the content-addressed store, hash-verified

1548 * deserialize it).
1549 */
1550 private void readObject(final java.io.ObjectInputStream s)
1551 throws java.io.IOException, ClassNotFoundException {
1552
1553 // Read in the Comparator and any hidden stuff
1554 s.defaultReadObject();
1555
1556 // Read in size
1557 int size = s.readInt();
1558
1559 buildFromSorted(size, null, s, null);
1560 } // readObject
1561
1562 /** Intended to be called only from TreeSet.readObject */
1563 void readTreeSet(int size, java.io.ObjectInputStream s, V defaultVal)

Callers 3

getLrMethod · 0.45
buildFromSortedMethod · 0.45
loadObjectFromUriMethod · 0.45

Calls 2

buildFromSortedMethod · 0.95
readIntMethod · 0.80

Tested by

no test coverage detected