Пример #1
0
        // 自动加载词典
        static CustomDictionary()
        {
            long start = System.currentTimeMillis();

            if (!loadMainDictionary(path[0]))
            {
                logger.warning("自定义词典" + Arrays.toString(path) + "加载失败");
            }
            else
            {
                logger.info("自定义词典加载成功:" + dat.size() + "个词条,耗时" + (System.currentTimeMillis() - start) + "ms");
            }
        }