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

Method readObject

src/main/java/gate/relations/RelationSet.java:648–668  ·  view source on GitHub ↗
(java.io.ObjectInputStream in)

Source from the content-addressed store, hash-verified

646 }
647
648 private void readObject(java.io.ObjectInputStream in) throws IOException,
649 ClassNotFoundException {
650 ObjectInputStream.GetField gf = in.readFields();
651
652 annSet = (AnnotationSet)gf.get("annSet", null);
653 relations = (Relation[])gf.get("relations", null);
654
655 indexByType = new HashMap<String, BitSet>();
656 indexesByMember = new ArrayList<Map<Integer, BitSet>>();
657 indexById = new HashMap<Integer, Relation>();
658
659 annSet.addAnnotationSetListener(this);
660
661 if (relations != null) {
662 for (Relation r : relations) {
663 add(r);
664 }
665 }
666
667 relations = null;
668 }
669}

Callers

nothing calls this directly

Calls 3

addMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected