code: public void add(char[] str, int idx) {
      SAXRecord rr = records.get(String.valueOf(str));
      if (null == rr) {
        rr = new SAXRecord(str, idx);
        this.records.put(String.valueOf(str), rr);
      }
      else {
        rr.addIndex(idx);
      }
      this.realTSindex.put(idx, rr);
    }
docs: Adds a single string and index entry by creating a SAXRecord.
  
  @param str The string.
  @param idx The index.