public void inform(ResourceLoader loader) { try { CharArraySet cas = getWordSet(loader, stopTagFiles, false); stopTags = new HashSet<String>(); for (Object element : cas) { char chars[] = (char[]) element; stopTags.add(new String(chars)); } } catch (IOException e) { throw new RuntimeException(e); } }
public void inform(ResourceLoader loader) { try { CharArraySet cas = getWordSet(loader, stopTagFiles, false); stopTags = new HashSet<String>(); for (Object element : cas) { char chars[] = (char[]) element; stopTags.add(new String(chars)); } } catch (IOException e) { throw new RuntimeException(e); } }