protected static CharArraySet loadStopwordSet(Path stopwords) throws IOException {
  Reader reader=null;
  try {
    reader=Files.newBufferedReader(stopwords,StandardCharsets.UTF_8);
    return WordlistLoader.getWordSet(reader);
  }
  finally {
    IOUtils.close(reader);
  }
}

protected static CharArraySet loadStopwordSet ( Path stopwords ) throws IOException { Reader reader = null ; try { reader = Files . newBufferedReader ( stopwords , StandardCharsets . UTF_8 ) ; return WordlistLoader . getWordSet ( reader ) ; } finally { IOUtils . close ( reader ) ; } }
creates a chararrayset from a path .
