{"id":16416343,"url":"https://github.com/igapyon/simple-poiwriteexcel","last_synced_at":"2026-04-16T02:31:49.302Z","repository":{"id":153082173,"uuid":"130055016","full_name":"igapyon/simple-POIWriteExcel","owner":"igapyon","description":"Simple sample to create large excel using POI.","archived":false,"fork":false,"pushed_at":"2018-04-18T12:58:22.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T11:18:47.290Z","etag":null,"topics":[],"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/igapyon.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":"2018-04-18T11:56:06.000Z","updated_at":"2018-04-18T12:58:23.000Z","dependencies_parsed_at":"2023-07-13T13:01:43.502Z","dependency_job_id":null,"html_url":"https://github.com/igapyon/simple-POIWriteExcel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/igapyon/simple-POIWriteExcel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igapyon%2Fsimple-POIWriteExcel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igapyon%2Fsimple-POIWriteExcel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igapyon%2Fsimple-POIWriteExcel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igapyon%2Fsimple-POIWriteExcel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igapyon","download_url":"https://codeload.github.com/igapyon/simple-POIWriteExcel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igapyon%2Fsimple-POIWriteExcel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31868492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"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":[],"created_at":"2024-10-11T07:09:01.573Z","updated_at":"2026-04-16T02:31:49.281Z","avatar_url":"https://github.com/igapyon.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[target](http://www.igapyon.jp/igapyon/diary/2018/ig180418.html) \n\n2018-04-18 diary: [Java] 大きな Excel ブックを Apache POI で作成\n=====================================================================================================\n[![いがぴょん画像(小)](http://www.igapyon.jp/igapyon/diary/images/iga200306s.jpg \"いがぴょん\")](http://www.igapyon.jp/igapyon/diary/memo/memoigapyon.html) [いがぴょん](http://www.igapyon.jp/igapyon/diary/memo/memoigapyon.html)の日記に関連のあるコンテンツ。\n\n## [Java] 大きな Excel ブックを Apache POI で作成\n\n大きな Excel ブックを Apache POI を用いて作成するシンプルなサンプルをメモします。\n\n完全なソースコードは以下にあります。\n\n* [https://github.com/igapy...IWriteExcel](https://github.com/igapyon/simple-POIWriteExcel)\n\nポイントとなるソースコードは以下。\n\n```java\nimport org.apache.poi.ss.usermodel.Cell;\nimport org.apache.poi.ss.usermodel.Row;\nimport org.apache.poi.ss.usermodel.Sheet;\nimport org.apache.poi.xssf.streaming.SXSSFWorkbook;\n\n        try (SXSSFWorkbook workbook = new SXSSFWorkbook(10)) {\n            for (int indexSheet = 0; indexSheet \u003c 4; indexSheet++) {\n                final Sheet sheet = workbook.createSheet();\n\n                for (int indexColumn = 0; indexColumn \u003c 20; indexColumn++) {\n                    sheet.setColumnWidth(indexColumn, 256 * 3);\n                }\n\n                for (int indexRow = 0; indexRow \u003c 100; indexRow++) {\n                    final Row row = sheet.createRow(indexRow);\n                    for (int indexColumn = 0; indexColumn \u003c 10; indexColumn++) {\n                        final Cell cell = row.createCell(indexColumn);\n                        cell.setCellValue(\"Data of (\" + indexColumn + \":\" + indexRow + \")\");\n                    }\n                }\n            }\n\n            try (BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(\"./target/aout.xlsx\"))) {\n                workbook.write(out);\n            }\n\n            workbook.dispose();\n        }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figapyon%2Fsimple-poiwriteexcel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figapyon%2Fsimple-poiwriteexcel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figapyon%2Fsimple-poiwriteexcel/lists"}