+
Skip to content

lookassh/hicx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

General

This application generates statistic for supported files (.txt) from requested directory.

Generated statistic:

  • Number of words
  • Number of dots
  • Most used word in file

After analyse file is moved to 'processed' directory Large files are supported (read line by line)

Usage

Java 14 is required to run application

java -jar hicx.jar --scan.directory=<scanDirectory>

--scan.directory - is path to root directory with your files to scan

--scan.fixed-delay - (optional, default 1000) time in milis between directory scan

Example

java -jar hicx.jar --scan.directory=/data/files

Will scan /data/files directory and try to analyze if supported

Contribution

Project is written in Java 14, Spring Boot 2.6.3 with Maven 3+

Compilation

mvn clean install

Diagrams

Sequence diagram Sequence diagram Class diagram Class diagram

Implementation details

To add new file support (like PdfReader) you have to implement Reader and register it in ReaderFactory

To add new statistic you have to implement Statistic and register it inAnalyseFileJobConfiguration

Visitor pattern is used to generate Statistic. Each text line is passed to visit method.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载