Skip to content

πŸ“„ A Spring Boot project for reading and saving TSV files

Notifications You must be signed in to change notification settings

AmirTghizde/TSV-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

The TSV analyzer is a Spring project designed to process TSV files and provide valuable insights.
It consists of two key methods:


  1. readTsvFile():

    This method reads the TSV file and returns an object called "tsvDetails."
    The "tsvDetails" object encapsulates three important pieces of information:
    • The total number of records in the file
    • The total price calculated from the TSV data
    • List of any duplicate values found in the file based on accountNumber and price
  2. saveFile():

    This method allows you to save the TSV file. However, it includes an important error handling mechanism. If the TSV file contains any duplicate values, it throws an error to prevent the saving process.

Important

This api only works with TSV files with a specific format. here's the format:

[AccountName] [AccountNumber] [Price( preferably double )]

Releases

No releases published

Packages

No packages published

Languages