code: public static String getTerm(IndexInput inTerm, Long ref) throws IOException {
      try {
        inTerm.seek(ref);
        return inTerm.readString();
      } catch (Exception e) {
        throw new IOException(e);
      }
    }
docs: Gets the term.
  
  @param inTerm the in term
  @param ref the ref
  @return the term
  @throws IOException Signals that an I/O exception has occurred.