Java 类org.apache.lucene.analysis.hunspell.HunspellDictionaryTest 实例源码

项目:NYBC    文件:TestRandomChains.java   
@Override public Object create(Random random) {
  // TODO: make nastier
  InputStream affixStream = HunspellDictionaryTest.class.getResourceAsStream("test.aff");
  InputStream dictStream = HunspellDictionaryTest.class.getResourceAsStream("test.dic");
  try {
   return new HunspellDictionary(affixStream, dictStream, TEST_VERSION_CURRENT);
  } catch (Exception ex) {
    Rethrow.rethrow(ex);
    return null; // unreachable code
  }
}
项目:Maskana-Gestor-de-Conocimiento    文件:TestRandomChains.java   
@Override public Object create(Random random) {
  // TODO: make nastier
  InputStream affixStream = HunspellDictionaryTest.class.getResourceAsStream("test.aff");
  InputStream dictStream = HunspellDictionaryTest.class.getResourceAsStream("test.dic");
  try {
   return new HunspellDictionary(affixStream, dictStream, TEST_VERSION_CURRENT);
  } catch (Exception ex) {
    Rethrow.rethrow(ex);
    return null; // unreachable code
  }
}