{"id":37020709,"url":"https://github.com/dattack/data-formats","last_synced_at":"2026-01-14T02:25:09.203Z","repository":{"id":45594938,"uuid":"71065473","full_name":"dattack/data-formats","owner":"dattack","description":"A very simple Java library for reading and writing data in different formats","archived":false,"fork":false,"pushed_at":"2023-03-12T17:05:30.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-14T15:54:46.250Z","etag":null,"topics":["java-library"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dattack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-16T17:22:01.000Z","updated_at":"2021-12-06T14:39:02.000Z","dependencies_parsed_at":"2022-08-24T11:10:25.860Z","dependency_job_id":null,"html_url":"https://github.com/dattack/data-formats","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/dattack/data-formats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dattack%2Fdata-formats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dattack%2Fdata-formats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dattack%2Fdata-formats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dattack%2Fdata-formats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dattack","download_url":"https://codeload.github.com/dattack/data-formats/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dattack%2Fdata-formats/sbom","scorecard":{"id":325110,"data":{"date":"2025-08-11","repo":{"name":"github.com/dattack/data-formats","commit":"c5b10f2ee7c37ebb38f7836a0f094557ee98b3ef"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T02:15:16.538Z","repository_id":45594938,"created_at":"2025-08-18T02:15:16.538Z","updated_at":"2025-08-18T02:15:16.538Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["java-library"],"created_at":"2026-01-14T02:25:08.582Z","updated_at":"2026-01-14T02:25:09.197Z","avatar_url":"https://github.com/dattack.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# data-formats\n\n[![Travis Badge](https://api.travis-ci.com/dattack/data-formats.svg?branch=develop)](https://travis-ci.com/dattack/data-formats/builds)\n[![license](https://img.shields.io/:license-Apache-blue.svg?style=plastic-square)](LICENSE.md)\n[![Maven Central](https://img.shields.io/maven-central/v/com.dattack/data-formats.svg?label=Maven%20Central)](https://search.maven.org/artifact/com.dattack/data-formats)\n[![javadoc](https://javadoc.io/badge2/com.dattack/data-formats/javadoc.svg)](https://javadoc.io/doc/com.dattack/data-formats)\n\nA very simple Java library for reading and writing data in different formats.\nCurrently, the available formats are:\n\n* CSV (Comma Separated Values).\n\n## Where can I get the latest release?\n\nYou can pull it from the central Maven repositories:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.dattack\u003c/groupId\u003e\n    \u003cartifactId\u003edata-formats\u003c/artifactId\u003e\n    \u003cversion\u003e0.2.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nThe source code on the master branch is the current state of development; it is not\nrecommended for general use. If you prefer to build from source, please use an appropriate\nrelease tag.\n\n## How-To\n\n### Writing CSV data\n\n1. Create a custom configuration by setting the properties of the CSV to be generated.\n2. Instantiate the `CSVStringBuilder` class.\n3. Append content to the instance of class `CSVStringBuilder` created in the previous step.\n\n```java\n\nimport com.dattack.formats.csv.CSVConfiguration;\nimport com.dattack.formats.csv.CSVStringBuilder;\n\npublic class Example {\n\n    // 1: create your customized configuration\n    private CSVConfiguration getConfiguration() {\n        return CSVConfiguration\n                .custom()\n                // .withCommentChar('#')\n                // .withSeparator(\"\\t\")\n                // ...\n                .build();\n    }\n\n    // 2: instantiate the CSVStringBuilder class \n    private CSVStringBuilder getCsvBuilder() {\n        return new CSVStringBuilder(getConfiguration());\n    }\n\n    public void writeCsv() {\n\n        // 3: append content\n        String csv = getCsvBuilder()\n                .comment(\"comment line\").eol() //\n                .append(1000L)\n                .append(true)\n                .append(1000.5)\n                .append(false)\n                .append(\"simple text\")\n                .append(\"text with #special# chars\")\n                .append(java.sql.Timestamp.from(instant))\n                .append(10.2)\n                .append(new BigDecimal(BigInteger.valueOf(105), 1))\n                .append(1)\n                .eol()\n                .toString();\n    }\n}\n```\n\n### Reading a CSV file\n\n1. Create a custom configuration by setting the properties of the CSV to be generated.\n2. Instantiate the `CSVReader` class.\n3. Iterate over the content.\n\n```java\n\nimport com.dattack.formats.csv.CSVConfiguration;\nimport com.dattack.formats.csv.CSVObject;\nimport com.dattack.formats.csv.CSVReader;\nimport java.util.Objects;\n\npublic class Example {\n\n    // 1: create your customized configuration\n    private CSVConfiguration getConfiguration() {\n        return CSVConfiguration\n                .custom()\n                // .withCommentChar('#')\n                // .withSeparator(\"\\t\")\n                // ...\n                .build();\n    }\n\n    // 2: instantiate the CSVReader class\n    private CSVReader getCsvReader(final File file) {\n        return new CSVReader(getConfiguration(), file);\n    }\n\n    public static void readCsv(final File file) throws IOException {\n\n        CSVReader csvReader = getCsvReader(file);\n\n        // 3: iterate over the content\n        CSVObject csvObject;\n        while (Objects.nonNull(csvObject = csvReader.next())) {\n            for (int i = 0; i \u003c csvObject.getSize(); i++) {\n                String value = csvObject.get(i);\n                // ... \n            }\n        }\n    }\n}\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature\nrequests, [please create an issue](https://github.com/dattack/data-formats/issues).\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\nIf you have other questions, please contact by [email](mailto:dev@dattack.com) or\n[@dattackteam](https://twitter.com/dattackteam)\n\n## License\n\nCode is under the [Apache Licence v2](https://www.apache.org/licenses/LICENSE-2.0.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdattack%2Fdata-formats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdattack%2Fdata-formats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdattack%2Fdata-formats/lists"}