Skip to content
多线程博客字数统计
Branch: master
Clone or download
Latest commit c7de479 Dec 1, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src 💡 Documenting source code. Oct 28, 2018
.gitignore Initial commit Oct 25, 2018
LICENSE
README.md 修改README.md Dec 1, 2018
pom.xml

README.md

NOWS

Number Of Words。统计你所写的博客字数,仅支持 Markdown 文件。

使用

git clone https://github.com/crossoverJie/NOWS.git
mvn clean package
java -jar nows-0.0.1-SNAPSHOT.jar /xx/xx/path

扩展

采用责任链模式可自定义统计策略。

    @Bean("httpFilterProcess")
    public FilterProcess httpFilterProcess() {
        return new HttpFilterProcess();
    }


    @Bean("numberFilterProcess")
    public FilterProcess numberFilterProcess() {
        return new NumberFilterProcess();
    }
    
    @PostConstruct
    public void start() {
        this.addProcess(numberFilterProcess)
                .addProcess(httpFilterProcess);
    }

性能

利用多线程读取效率明显提升。

You can’t perform that action at this time.