ʹ�� {@link CJKDictionaryFactory}��Ҫ����һ���ǿյ� {@link #wordsLoader}��
@author Zhiliang Wang [qieqie.wang@gmail.com] @see CJKKnife @since 1.0
545556575859606162636465666768
public static Paoding getPaoding() { if (paoding == null) { synchronized (XFactory.class) { if (paoding == null) { CJKDictionaryFactory cjkDicFactory = createDicFactory(); paoding = new Paoding(); paoding.addKnife(new CJKKnife(cjkDicFactory)); paoding.addKnife(new LetterKnife()); paoding.addKnife(new NumberKnife(cjkDicFactory.getUnits())); } } } return paoding; }
666768697071727374
} return paoding; } private static CJKDictionaryFactory createDicFactory() { CJKDictionaryFactory cjkDicFactory = new CJKDictionaryFactory(); cjkDicFactory.setWordsLoader(new FileWordsLoader("dic/CJK")); return cjkDicFactory; }