code: public Set<String> getKeyList() throws IOException {
      if (!closed) {
        close();
      }
      return new HashSet<>(Arrays.asList(keyList));
    }
docs: Gets the key list.
  
  @return the key list
  @throws IOException Signals that an I/O exception has occurred.