Package com.sohospace.paoding.cjk

Examples of com.sohospace.paoding.cjk.CJKDictionaryFactory


  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;
  }
View Full Code Here


    }
    return paoding;
  }

  private static CJKDictionaryFactory createDicFactory() {
    CJKDictionaryFactory cjkDicFactory = new CJKDictionaryFactory();
    cjkDicFactory.setWordsLoader(new FileWordsLoader("dic/CJK"));
    return cjkDicFactory;
  }
View Full Code Here

TOP

Related Classes of com.sohospace.paoding.cjk.CJKDictionaryFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.