Пример #1
0
  /**
   * lookup a word by its index.
   *
   * @param idx index of a word
   * @return word data
   */
  public String lookupWord(int idx) {
    if (idx < 0 || idx >= idxFile.getLongWordCount()) {
      return null;
    }
    WordEntry tempEntry = idxFile.getEntryList().get((int) idx);

    return dictFile.getWordData(tempEntry.getLongOffset(), tempEntry.getLongSize());
  }