{"id":17241766,"url":"https://github.com/j256/simplecsv","last_synced_at":"2025-03-22T18:34:23.228Z","repository":{"id":23678706,"uuid":"27050186","full_name":"j256/simplecsv","owner":"j256","description":"Simple Java CSV reading and writing library using Java annotations","archived":false,"fork":false,"pushed_at":"2022-03-25T09:18:51.000Z","size":1128,"stargazers_count":25,"open_issues_count":4,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-01T17:51:30.927Z","etag":null,"topics":["annotations","csv","java"],"latest_commit_sha":null,"homepage":"http://256stuff.com/sources/simplecsv/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/j256.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"j256","patreon":"j256"}},"created_at":"2014-11-23T22:18:50.000Z","updated_at":"2025-01-05T07:44:17.000Z","dependencies_parsed_at":"2022-08-22T03:50:33.222Z","dependency_job_id":null,"html_url":"https://github.com/j256/simplecsv","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j256%2Fsimplecsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j256%2Fsimplecsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j256%2Fsimplecsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j256%2Fsimplecsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j256","download_url":"https://codeload.github.com/j256/simplecsv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245003596,"owners_count":20545637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["annotations","csv","java"],"created_at":"2024-10-15T06:11:11.679Z","updated_at":"2025-03-22T18:34:22.847Z","avatar_url":"https://github.com/j256.png","language":"Java","funding_links":["https://github.com/sponsors/j256","https://patreon.com/j256"],"categories":[],"sub_categories":[],"readme":"Simple Java CSV Reader / Writer\n===============================\n\nThis package provides some Java classes to help with the reading and writing of CSV files using Java annotations.\n\n* For more information, visit the [home page](http://256stuff.com/sources/simplecsv/).\t\n* In the sourcecode there is a [simple working example program](http://256stuff.com/sources/simplecsv/docs/example-simple).\n* Online documentation can be found off the home page including [full Javadocs](http://256stuff.com/sources/simplecsv/javadoc/simplecsv/).\n* The source is available from the [git repository](https://github.com/j256/simplecsv).\t [![CircleCI](https://circleci.com/gh/j256/simplecsv.svg?style=svg)](https://circleci.com/gh/j256/simplecsv) [![CodeCov](https://img.shields.io/codecov/c/github/j256/simplecsv.svg)](https://codecov.io/github/j256/simplecsv/)\n* Maven packages are published via [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.j256.simplecsv/simplecsv/badge.svg?style=flat-square)](https://maven-badges.herokuapp.com/maven-central/com.j256.simplecsv/simplecsv/)\n* Javadocs: [![javadoc](https://javadoc.io/badge2/com.j256.simplecsv/simplecsv/javadoc.svg)](https://javadoc.io/doc/com.j256.simplecsv/simplecsv)\n\nEnjoy.  Gray Watson\n\n## Quick Example:\n\nDefine your entity with the fields marked with the @CsvColumn annotation, can also mark get/set methods:\n\n\tpublic class Account {\n\t\t@CsvColumn(columnName = \"Name\")\n\t\tprivate String name;\n\t\t@CsvColumn(columnName = \"Account Number\")\n\t\tprivate long number;\n\t\t...\n\t}\n\nCreate a CSV processor for the Account class.\n\n\tCsvProcessor\u003cAccount\u003e csvProcessor = new CsvProcessor\u003cAccount\u003e(Account.class);\n\nWrite out all of the accounts from a list of them to a CSV file with a header:\n\n\tFile csvFile = new File(CSV_FILE_PATH);\n\tcsvProcessor.writeAll(csvFile, accountList, true /* write header */);\n\nThis generates the following output:\n\n\t\"Name\",\"Account Number\"\n\t\"Bill Smith\",1\n\t\"Foo Bar\",2\n\t\"Jim Jimston\",3\n\nNow read those accounts back in with an optional error handler:\n\n\tList\u003cAccount\u003e readAccounts = csvProcessor.readAll(csvFile, null /* error handler */);\n\n# Maven Configuration\n\n* Maven packages are published via [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.j256.simplecsv/simplecsv/badge.svg?style=flat-square)](https://maven-badges.herokuapp.com/maven-central/com.j256.simplecsv/simplecsv/)\n\n``` xml\n\u003cdependency\u003e\n\t\u003cgroupId\u003ecom.j256.simplecsv\u003c/groupId\u003e\n\t\u003cartifactId\u003esimplecsv\u003c/artifactId\u003e\n\t\u003cversion\u003e2.6\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n# ChangeLog Release Notes\n\nSee the [ChangeLog.txt file](src/main/javadoc/doc-files/changelog.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj256%2Fsimplecsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj256%2Fsimplecsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj256%2Fsimplecsv/lists"}