{"id":37435552,"url":"https://github.com/jze/ods-reader","last_synced_at":"2026-01-16T06:39:41.657Z","repository":{"id":30435826,"uuid":"33988896","full_name":"jze/ods-reader","owner":"jze","description":"Java library for reading OpenDocument tables (ODS file)","archived":false,"fork":false,"pushed_at":"2025-02-12T08:34:19.000Z","size":184,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-12T08:36:24.913Z","etag":null,"topics":["java","libreoffice","opendocument","opendocument-spreadsheet"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"google/error-prone","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-04-15T11:02:05.000Z","updated_at":"2025-02-12T08:29:08.000Z","dependencies_parsed_at":"2024-11-29T07:21:26.481Z","dependency_job_id":null,"html_url":"https://github.com/jze/ods-reader","commit_stats":null,"previous_names":["jze/ods-reader"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jze/ods-reader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jze%2Fods-reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jze%2Fods-reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jze%2Fods-reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jze%2Fods-reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jze","download_url":"https://codeload.github.com/jze/ods-reader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jze%2Fods-reader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","libreoffice","opendocument","opendocument-spreadsheet"],"created_at":"2026-01-16T06:39:41.182Z","updated_at":"2026-01-16T06:39:41.652Z","avatar_url":"https://github.com/jze.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ods-reader\n\n![Maven Central version](https://img.shields.io/maven-central/v/de.zedlitz/ods-reader)\n![Coverage](.github/badges/jacoco.svg)\n\nYou want to import very large OpenDocument tables (ODS file) and worry about memory usage? In that case the ods-reader might be interesting for you. Instead of loading the entire document, it is a pull-based reader. It therefore has a very low memory consumption, even with huge documents.\n\n## Usage\nHere is an example how to use the ods-reader:\n```java\n  Document doc = new Document(new File(\"myTable.ods\"));\n  Table table = doc.nextTable();\n  Row row = table.nextRow();\n  while( row != null ) {\n    Cell a = row.nextCell();\n    Cell b = row.nextCell();\n    System.out.println( a.getContent + \"\\t\" + b.getContent );\n    row = table.nextRow();\n  }\n```\n\n### Maven \n\nThe library is available at Maven Central. You can add a dependency to `ods-reader` to you project like this:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ede.zedlitz\u003c/groupId\u003e\n    \u003cartifactId\u003eods-reader\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Cell types\n\nODS distinguishes between the value that is displayed for humans and the machine-readable value. The value that is displayed for humans depends on the language selected for the document. The method `getContent()` is used to get the language depending human-readable value.\n\nThe machine-reable value can be read using specialized methods that return suitable Java objects. Here is an example:\n\n```java\nif (\"date\".equals(cell.getValueType())) {\n    if( cell.isDateTime() ) {\n        LocalDateTime dateTime = cell.asDateTime();\n    } else {\n        LocalDate date = cell.asDate();\n    }\n} else if (\"boolean\".equals(cell.getValueType())) {\n    boolean b = cell.asBoolean();\n} else if (\"time\".equals(cell.getValueType())) {\n    LocalTime time = cell.asTime();\n} else if (cell.getValue() != null) {\n    result = cell.getValue();\n} else {\n    result = cell.getContent();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjze%2Fods-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjze%2Fods-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjze%2Fods-reader/lists"}