{"id":474,"date":"2022-12-18T17:54:36","date_gmt":"2023-01-11T07:03:48","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/apache-poi%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/"},"modified":"2025-07-31T23:52:16","modified_gmt":"2025-07-31T14:52:16","slug":"apache-poi%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/apache-poi%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/","title":{"rendered":"Apache POI\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb"},"content":{"rendered":"<p>\u300cApache POI\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3078\u3088\u3046\u3053\u305d\u3002\u6642\u306b\u306f\u3001\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u30a8\u30af\u30bb\u30eb\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u53d6\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3084\u3001\u4e3b\u306b\u30d3\u30b8\u30cd\u30b9\u3084\u91d1\u878d\u76ee\u7684\u3067\u30a8\u30af\u30bb\u30eb\u5f62\u5f0f\u306e\u30ec\u30dd\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Java\u306b\u306fExcel\u30d5\u30a1\u30a4\u30eb\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u7d44\u307f\u8fbc\u307f\u30b5\u30dd\u30fc\u30c8\u306f\u63d0\u4f9b\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u79c1\u305f\u3061\u306f\u3053\u306e\u4ed5\u4e8b\u306e\u305f\u3081\u306e\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9API\u3092\u63a2\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Java\u5411\u3051\u306eExcel\u7528\u306eAPI\u3092\u63a2\u3057\u59cb\u3081\u305f\u3068\u304d\u3001\u307b\u3068\u3093\u3069\u306e\u4eba\u3005\u304cJExcel\u307e\u305f\u306fApache POI\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3057\u305f\u3002\u3055\u3089\u306a\u308b\u8abf\u67fb\u306e\u7d50\u679c\u3001Apache POI\u304c\u4e3b\u8981\u306a\u7406\u7531\u304b\u3089\u9032\u3080\u3079\u304d\u9053\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002\u9ad8\u5ea6\u306a\u6a5f\u80fd\u306b\u95a2\u9023\u3059\u308b\u4ed6\u306e\u7406\u7531\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u8a73\u7d30\u306b\u306f\u89e6\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u300d<\/p>\n<ul class=\"post-ul\">\n<li>Backing of Apache foundation.<\/li>\n<li>JExcel doesn\u2019t support xlsx format whereas POI supports both xls and xlsx formats.<\/li>\n<li>Apache POI provides stream-based processing, that is suitable for large files and requires less memory.<\/li>\n<\/ul>\n<h2>\u30a2\u30d1\u30c3\u30c1 POI<\/h2>\n<p>Apache POI\u306fMicrosoft Excel\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u6271\u3046\u969b\u306b\u512a\u308c\u305f\u30b5\u30dd\u30fc\u30c8\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002Apache POI\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306eXLS\u304a\u3088\u3073XLSX\u5f62\u5f0f\u306e\u4e21\u65b9\u3092\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Apache POI API\u306e\u91cd\u8981\u306a\u30dd\u30a4\u30f3\u30c8\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Apache POI\u306b\u306f\u3001Excel &#8217;97(-2007)\u306e\u30d5\u30a1\u30a4\u30eb\u5f62\u5f0f\u3067\u3042\u308bXLS\u306eHSSF\u5b9f\u88c5\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Excel 2007\u306eOOXML (.xlsx)\u30d5\u30a1\u30a4\u30eb\u5f62\u5f0f\u306b\u306f\u3001Apache POI\u306eXSSF\u5b9f\u88c5\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Apache POI\u306eHSSF\u3068XSSF API\u306f\u3001Excel\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u8aad\u307f\u53d6\u3063\u305f\u308a\u3001\u66f8\u304d\u8fbc\u3093\u3060\u308a\u3001\u5909\u66f4\u3057\u305f\u308a\u3059\u308b\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Apache POI\u306fSXSSF API\u3082\u63d0\u4f9b\u3057\u3066\u304a\u308a\u3001\u975e\u5e38\u306b\u5927\u304d\u306aExcel\u30b7\u30fc\u30c8\u3092\u6271\u3046\u305f\u3081\u306eXSSF\u306e\u62e1\u5f35\u3067\u3059\u3002SXSSF API\u306f\u30e1\u30e2\u30ea\u3092\u5c11\u306a\u304f\u4f7f\u7528\u3057\u3001\u30d2\u30fc\u30d7\u30e1\u30e2\u30ea\u304c\u5236\u9650\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u9078\u629e\u3067\u304d\u308b\u30e2\u30c7\u30eb\u306f2\u3064\u3042\u308a\u307e\u3059 &#8211; \u30a4\u30d9\u30f3\u30c8\u30e2\u30c7\u30eb\u3068\u30e6\u30fc\u30b6\u30fc\u30e2\u30c7\u30eb\u3067\u3059\u3002\u30a4\u30d9\u30f3\u30c8\u30e2\u30c7\u30eb\u306f\u3001Excel\u30d5\u30a1\u30a4\u30eb\u3092\u30c8\u30fc\u30af\u30f3\u3068\u3057\u3066\u8aad\u307f\u8fbc\u307f\u3001\u305d\u308c\u3089\u3092\u51e6\u7406\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001\u30e1\u30e2\u30ea\u3092\u5c11\u306a\u304f\u4f7f\u7528\u3057\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u30e2\u30c7\u30eb\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3067\u3042\u308a\u3001\u4f7f\u7528\u304c\u7c21\u5358\u3067\u3059\u3002\u79c1\u305f\u3061\u306f\u3053\u306e\u30e6\u30fc\u30b6\u30fc\u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>Apache POI\u306f\u3001\u5f0f\u306e\u64cd\u4f5c\u3001\u8272\u3084\u5883\u754c\u7dda\u306e\u8a2d\u5b9a\u306b\u3088\u308b\u30bb\u30eb\u30b9\u30bf\u30a4\u30eb\u306e\u4f5c\u6210\u3001\u30d5\u30a9\u30f3\u30c8\u3001\u30d8\u30c3\u30c0\u30fc\u3068\u30d5\u30c3\u30bf\u30fc\u3001\u30c7\u30fc\u30bf\u306e\u691c\u8a3c\u3001\u753b\u50cf\u3001\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u306a\u3069\u3001\u8ffd\u52a0\u306eExcel\u6a5f\u80fd\u306e\u512a\u308c\u305f\u30b5\u30dd\u30fc\u30c8\u3082\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/ol>\n<h3>Apache POI\u306eMaven\u4f9d\u5b58\u95a2\u4fc2<\/h3>\n<p>\u3082\u3057Maven\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306eApache POI\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;dependency&gt;\r\n\t&lt;groupId&gt;org.apache.poi&lt;\/groupId&gt;\r\n\t&lt;artifactId&gt;poi&lt;\/artifactId&gt;\r\n\t&lt;version&gt;3.10-FINAL&lt;\/version&gt;\r\n&lt;\/dependency&gt;\r\n&lt;dependency&gt;\r\n\t&lt;groupId&gt;org.apache.poi&lt;\/groupId&gt;\r\n\t&lt;artifactId&gt;poi-ooxml&lt;\/artifactId&gt;\r\n\t&lt;version&gt;3.10-FINAL&lt;\/version&gt;\r\n&lt;\/dependency&gt;\r\n<\/code><\/pre>\n<p>\u73fe\u5728\u306eApache POI\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f3.10-FINAL\u3067\u3059\u3002\u3082\u3057\u5358\u4f53\u306eJava\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u753b\u50cf\u304b\u3089JAR\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u308a\u8fbc\u3093\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>Apache POI \u306e\u4f8b &#8211; Excel \u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u53d6\u308a\u4f8b<\/h3>\n<p>\u300cSample.xlsx\u300d\u3068\u3044\u3046\u30a8\u30af\u30bb\u30eb\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u3001\u4ee5\u4e0b\u306e\u753b\u50cf\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u304c2\u3064\u306e\u30b7\u30fc\u30c8\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u3068\u3057\u307e\u3059\u3002\u3053\u306e\u30a8\u30af\u30bb\u30eb\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u3001\u56fd\u306e\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u305f\u3044\u3067\u3059\u3002Sheet1\u306b\u306f\u30d1\u30fc\u30b9\u3059\u308b\u969b\u306b\u7121\u8996\u3059\u308b\u3079\u304d\u8ffd\u52a0\u306e\u30c7\u30fc\u30bf\u304c\u3042\u308a\u307e\u3059\u3002\u56fd\u306eJava Bean\u30b3\u30fc\u30c9\u306f\u3001Country.java\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.excel.read;\r\n\r\npublic class Country {\r\n\r\n\tprivate String name;\r\n\tprivate String shortCode;\r\n\t\r\n\tpublic Country(String n, String c){\r\n\t\tthis.name=n;\r\n\t\tthis.shortCode=c;\r\n\t}\r\n\t\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}\r\n\tpublic void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}\r\n\tpublic String getShortCode() {\r\n\t\treturn shortCode;\r\n\t}\r\n\tpublic void setShortCode(String shortCode) {\r\n\t\tthis.shortCode = shortCode;\r\n\t}\r\n\t\r\n\t@Override\r\n\tpublic String toString(){\r\n\t\treturn name + \"::\" + shortCode;\r\n\t}\r\n\t\r\n}\r\n<\/code><\/pre>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306aExcel\u30d5\u30a1\u30a4\u30eb\u3092\u56fd\u306e\u30ea\u30b9\u30c8\u306b\u8aad\u307f\u8fbc\u3080\u305f\u3081\u306eApache POI\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001ReadExcelFileToList.java\u3068\u3044\u3046\u540d\u524d\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.excel.read;\r\n\r\nimport java.io.FileInputStream;\r\nimport java.io.IOException;\r\nimport java.util.ArrayList;\r\nimport java.util.Iterator;\r\nimport java.util.List;\r\n\r\nimport org.apache.poi.hssf.usermodel.HSSFWorkbook;\r\nimport org.apache.poi.ss.usermodel.Cell;\r\nimport org.apache.poi.ss.usermodel.Row;\r\nimport org.apache.poi.ss.usermodel.Sheet;\r\nimport org.apache.poi.ss.usermodel.Workbook;\r\nimport org.apache.poi.xssf.usermodel.XSSFWorkbook;\r\n\r\npublic class ReadExcelFileToList {\r\n\r\n\tpublic static List&lt;Country&gt; readExcelData(String fileName) {\r\n\t\tList&lt;Country&gt; countriesList = new ArrayList&lt;Country&gt;();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\/\/Create the input stream from the xlsx\/xls file\r\n\t\t\tFileInputStream fis = new FileInputStream(fileName);\r\n\t\t\t\r\n\t\t\t\/\/Create Workbook instance for xlsx\/xls file input stream\r\n\t\t\tWorkbook workbook = null;\r\n\t\t\tif(fileName.toLowerCase().endsWith(\"xlsx\")){\r\n\t\t\t\tworkbook = new XSSFWorkbook(fis);\r\n\t\t\t}else if(fileName.toLowerCase().endsWith(\"xls\")){\r\n\t\t\t\tworkbook = new HSSFWorkbook(fis);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\/\/Get the number of sheets in the xlsx file\r\n\t\t\tint numberOfSheets = workbook.getNumberOfSheets();\r\n\t\t\t\r\n\t\t\t\/\/loop through each of the sheets\r\n\t\t\tfor(int i=0; i &lt; numberOfSheets; i++){\r\n\t\t\t\t\r\n\t\t\t\t\/\/Get the nth sheet from the workbook\r\n\t\t\t\tSheet sheet = workbook.getSheetAt(i);\r\n\t\t\t\t\r\n\t\t\t\t\/\/every sheet has rows, iterate over them\r\n\t\t\t\tIterator&lt;Row&gt; rowIterator = sheet.iterator();\r\n\t\t\t\twhile (rowIterator.hasNext()) \r\n\t\t        {\r\n\t\t\t\t\tString name = \"\";\r\n\t\t\t\t\tString shortCode = \"\";\r\n\t\t\t\t\t\r\n\t\t\t\t\t\/\/Get the row object\r\n\t\t\t\t\tRow row = rowIterator.next();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\/\/Every row has columns, get the column iterator and iterate over them\r\n\t\t\t\t\tIterator&lt;Cell&gt; cellIterator = row.cellIterator();\r\n\t\t             \r\n\t\t            while (cellIterator.hasNext()) \r\n\t\t            {\r\n\t\t            \t\/\/Get the Cell object\r\n\t\t            \tCell cell = cellIterator.next();\r\n\t\t            \t\r\n\t\t            \t\/\/check the cell type and process accordingly\r\n\t\t            \tswitch(cell.getCellType()){\r\n\t\t            \tcase Cell.CELL_TYPE_STRING:\r\n\t\t            \t\tif(shortCode.equalsIgnoreCase(\"\")){\r\n\t\t            \t\t\tshortCode = cell.getStringCellValue().trim();\r\n\t\t            \t\t}else if(name.equalsIgnoreCase(\"\")){\r\n\t\t            \t\t\t\/\/2nd column\r\n\t\t            \t\t\tname = cell.getStringCellValue().trim();\r\n\t\t            \t\t}else{\r\n\t\t            \t\t\t\/\/random data, leave it\r\n\t\t            \t\t\tSystem.out.println(\"Random data::\"+cell.getStringCellValue());\r\n\t\t            \t\t}\r\n\t\t            \t\tbreak;\r\n\t\t            \tcase Cell.CELL_TYPE_NUMERIC:\r\n\t\t            \t\tSystem.out.println(\"Random data::\"+cell.getNumericCellValue());\r\n\t\t            \t}\r\n\t\t            } \/\/end of cell iterator\r\n\t\t            Country c = new Country(name, shortCode);\r\n\t\t            countriesList.add(c);\r\n\t\t        } \/\/end of rows iterator\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} \/\/end of sheets for loop\r\n\t\t\t\r\n\t\t\t\/\/close file input stream\r\n\t\t\tfis.close();\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn countriesList;\r\n\t}\r\n\r\n\tpublic static void main(String args[]){\r\n\t\tList&lt;Country&gt; list = readExcelData(\"Sample.xlsx\");\r\n\t\tSystem.out.println(\"Country List\\n\"+list);\r\n\t}\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u975e\u5e38\u306b\u7406\u89e3\u3057\u3084\u3059\u304f\u3001\u4ee5\u4e0b\u306e\u30b9\u30c6\u30c3\u30d7\u3092\u542b\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30d5\u30a1\u30a4\u30eb\u306e\u7a2e\u985e\u306b\u57fa\u3065\u3044\u3066Workbook\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002xlsx\u5f62\u5f0f\u306e\u5834\u5408\u306fXSSFWorkbook\u3092\u4f7f\u7528\u3057\u3001xls\u5f62\u5f0f\u306e\u5834\u5408\u306fHSSFWorkbook\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u306a\u304a\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u57fa\u306bWorkbook\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u3001\u30d5\u30a1\u30af\u30c8\u30ea\u30fc\u30d1\u30bf\u30fc\u30f3\u3092\u4f7f\u7528\u3057\u305f\u30e9\u30c3\u30d1\u30fc\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>getNumberOfSheets()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30b7\u30fc\u30c8\u306e\u6570\u3092\u53d6\u5f97\u3057\u3001\u305d\u308c\u305e\u308c\u306e\u30b7\u30fc\u30c8\u3092\u89e3\u6790\u3059\u308b\u305f\u3081\u306bfor\u30eb\u30fc\u30d7\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002getSheetAt(int i)\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066Sheet\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Row\u30a4\u30c6\u30ec\u30fc\u30bf\u30fc\u3092\u53d6\u5f97\u3057\u3001Cell\u30a4\u30c6\u30ec\u30fc\u30bf\u30fc\u3092\u4f7f\u7528\u3057\u3066Cell\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002Apache POI\u3067\u306f\u3001\u3053\u3053\u3067\u30a4\u30c6\u30ec\u30fc\u30bf\u30fc\u30d1\u30bf\u30fc\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>Cell\u306e\u7a2e\u985e\u3092\u8aad\u307f\u53d6\u308a\u3001\u305d\u308c\u306b\u5fdc\u3058\u3066\u51e6\u7406\u3092\u884c\u3046\u305f\u3081\u306bswitch-case\u6587\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/ol>\n<p>\u4e0a\u8a18\u306eApache POI\u306e\u4f8b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u4e0a\u306b\u6b21\u306e\u51fa\u529b\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>Random data::1.0\r\nRandom data::2.0\r\nRandom data::3.0\r\nRandom data::4.0\r\nCountry List\r\n[India::IND, Afghanistan::AFG, United States of America::USA, Anguilla::AIA, \r\nDenmark\u00a0::DNK, Dominican Republic\u00a0::DOM, Algeria\u00a0::DZA, Ecuador\u00a0::ECU]\r\n<\/code><\/pre>\n<h3>Apache POI\u306e\u4f8b &#8211; Excel\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u8fbc\u307f<\/h3>\n<p>Apache POI\u3092\u4f7f\u7528\u3057\u3066Excel\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u8fbc\u3080\u3053\u3068\u306f\u3001\u8aad\u307f\u8fbc\u3080\u3053\u3068\u3068\u4f3c\u3066\u3044\u307e\u3059\u304c\u3001\u6700\u521d\u306b\u30ef\u30fc\u30af\u30d6\u30c3\u30af\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u6b21\u306b\u3001\u30b7\u30fc\u30c8\u3001\u884c\u3001\u30bb\u30eb\u306e\u5024\u3092\u8a2d\u5b9a\u3057\u3001FileOutputStream\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u524d\u8ff0\u306e\u65b9\u6cd5\u3067\u5f97\u3089\u308c\u305f\u56fd\u306e\u30ea\u30b9\u30c8\u3092\u5225\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5358\u4e00\u306e\u30b7\u30fc\u30c8\u306b\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306e\u7c21\u5358\u306aApache POI\u306e\u4f8b\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u3087\u3046\u3002WriteListToExcelFile.java<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.excel.read;\r\n\r\nimport java.io.FileOutputStream;\r\nimport java.util.Iterator;\r\nimport java.util.List;\r\n\r\nimport org.apache.poi.hssf.usermodel.HSSFWorkbook;\r\nimport org.apache.poi.ss.usermodel.Cell;\r\nimport org.apache.poi.ss.usermodel.Row;\r\nimport org.apache.poi.ss.usermodel.Sheet;\r\nimport org.apache.poi.ss.usermodel.Workbook;\r\nimport org.apache.poi.xssf.usermodel.XSSFWorkbook;\r\n\r\npublic class WriteListToExcelFile {\r\n\r\n\tpublic static void writeCountryListToFile(String fileName, List&lt;Country&gt; countryList) throws Exception{\r\n\t\tWorkbook workbook = null;\r\n\t\t\r\n\t\tif(fileName.endsWith(\"xlsx\")){\r\n\t\t\tworkbook = new XSSFWorkbook();\r\n\t\t}else if(fileName.endsWith(\"xls\")){\r\n\t\t\tworkbook = new HSSFWorkbook();\r\n\t\t}else{\r\n\t\t\tthrow new Exception(\"invalid file name, should be xls or xlsx\");\r\n\t\t}\r\n\t\t\r\n\t\tSheet sheet = workbook.createSheet(\"Countries\");\r\n\t\t\r\n\t\tIterator&lt;Country&gt; iterator = countryList.iterator();\r\n\t\t\r\n\t\tint rowIndex = 0;\r\n\t\twhile(iterator.hasNext()){\r\n\t\t\tCountry country = iterator.next();\r\n\t\t\tRow row = sheet.createRow(rowIndex++);\r\n\t\t\tCell cell0 = row.createCell(0);\r\n\t\t\tcell0.setCellValue(country.getName());\r\n\t\t\tCell cell1 = row.createCell(1);\r\n\t\t\tcell1.setCellValue(country.getShortCode());\r\n\t\t}\r\n\t\t\r\n\t\t\/\/lets write the excel data to file now\r\n\t\tFileOutputStream fos = new FileOutputStream(fileName);\r\n\t\tworkbook.write(fos);\r\n\t\tfos.close();\r\n\t\tSystem.out.println(fileName + \" written successfully\");\r\n\t}\r\n\t\r\n\tpublic static void main(String args[]) throws Exception{\r\n\t\tList&lt;Country&gt; list = ReadExcelFileToList.readExcelData(\"Sample.xlsx\");\r\n\t\tWriteListToExcelFile.writeCountryListToFile(\"Countries.xls\", list);\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306eApache POI\u306e\u4f8b\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u751f\u6210\u3055\u308c\u305fExcel\u30d5\u30a1\u30a4\u30eb\u306f\u4e0b\u8a18\u306e\u753b\u50cf\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>Apache POI\u306e\u4f8b &#8211; Excel\u306e\u6570\u5f0f\u3092\u8aad\u307f\u53d6\u308b<\/h3>\n<p>\u6642\u306b\u306f\u3001\u8907\u96d1\u306a\u30a8\u30af\u30bb\u30eb\u30d5\u30a1\u30a4\u30eb\u3092\u6271\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5358\u7d14\u306aApache POI\u306e\u4f8b\u3092\u898b\u3066\u3001\u30bb\u30eb\u306e\u6570\u5f0f\u3068\u5024\u3092\u8aad\u307f\u53d6\u308b\u65b9\u6cd5\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002ReadExcelFormula.java<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.excel.read;\r\n\r\nimport java.io.FileInputStream;\r\nimport java.io.IOException;\r\nimport java.util.Iterator;\r\n\r\nimport org.apache.poi.ss.usermodel.Cell;\r\nimport org.apache.poi.ss.usermodel.Row;\r\nimport org.apache.poi.ss.usermodel.Sheet;\r\nimport org.apache.poi.ss.usermodel.Workbook;\r\nimport org.apache.poi.xssf.usermodel.XSSFWorkbook;\r\n\r\npublic class ReadExcelFormula {\r\n\r\n\tpublic static void readExcelFormula(String fileName) throws IOException{\r\n\t\t\r\n\t\tFileInputStream fis = new FileInputStream(fileName);\r\n\t\t\r\n\t\t\/\/assuming xlsx file\r\n\t\tWorkbook workbook = new XSSFWorkbook(fis);\r\n\t\tSheet sheet = workbook.getSheetAt(0);\r\n\t\tIterator&lt;Row&gt; rowIterator = sheet.iterator();\r\n\t\twhile (rowIterator.hasNext()) \r\n        {\r\n\t\t\tRow row = rowIterator.next();\r\n\t\t\tIterator&lt;Cell&gt; cellIterator = row.cellIterator();\r\n            \r\n            while (cellIterator.hasNext()) \r\n            {\r\n            \tCell cell = cellIterator.next();\r\n            \tswitch(cell.getCellType()){\r\n            \tcase Cell.CELL_TYPE_NUMERIC:\r\n            \t\tSystem.out.println(cell.getNumericCellValue());\r\n            \t\tbreak;\r\n            \tcase Cell.CELL_TYPE_FORMULA:\r\n            \t\tSystem.out.println(\"Cell Formula=\"+cell.getCellFormula());\r\n            \t\tSystem.out.println(\"Cell Formula Result Type=\"+cell.getCachedFormulaResultType());\r\n            \t\tif(cell.getCachedFormulaResultType() == Cell.CELL_TYPE_NUMERIC){\r\n            \t\t\tSystem.out.println(\"Formula Value=\"+cell.getNumericCellValue());\r\n            \t\t}\r\n            \t}\r\n            }\r\n        }\r\n\t}\r\n\t\r\n\tpublic static void main(String args[]) throws IOException {\r\n\t\treadExcelFormula(\"FormulaMultiply.xlsx\");\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306eApache POI\u306e\u4f8b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>1.0\r\n2.0\r\n3.0\r\n4.0\r\nCell Formula=A1*A2*A3*A4\r\nCell Formula Result Type=0\r\nFormula Value=24.0\r\n<\/code><\/pre>\n<h3>Apache POI\u306e\u4f8b &#8211; Excel\u306b\u6570\u5f0f\u3092\u66f8\u304d\u8fbc\u3080<\/h3>\n<p>\u6642\u3005\u3001\u79c1\u305f\u3061\u306f\u3044\u304f\u3064\u304b\u306e\u8a08\u7b97\u3092\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u305a\u3001\u305d\u308c\u304b\u3089\u30bb\u30eb\u306e\u5024\u3092\u66f8\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u79c1\u305f\u3061\u306fExcel\u306e\u6570\u5f0f\u3092\u4f7f\u7528\u3057\u3066\u3053\u306e\u8a08\u7b97\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u3001\u30bb\u30eb\u306e\u5024\u304c\u5909\u66f4\u3055\u308c\u305f\u5834\u5408\u306b\u5024\u3082\u5909\u66f4\u3055\u308c\u308b\u305f\u3081\u3001\u3088\u308a\u6b63\u78ba\u306b\u306a\u308a\u307e\u3059\u3002Apache POI API\u3092\u4f7f\u7528\u3057\u3066Excel\u30d5\u30a1\u30a4\u30eb\u306b\u6570\u5f0f\u3092\u66f8\u304f\u305f\u3081\u306e\u7c21\u5358\u306a\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002WriteExcelWithFormula.java<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.excel.read;\r\n\r\nimport java.io.FileOutputStream;\r\nimport java.io.IOException;\r\n\r\nimport org.apache.poi.ss.usermodel.Row;\r\nimport org.apache.poi.ss.usermodel.Sheet;\r\nimport org.apache.poi.ss.usermodel.Workbook;\r\nimport org.apache.poi.xssf.usermodel.XSSFWorkbook;\r\n\r\npublic class WriteExcelWithFormula {\r\n\r\n\tpublic static void writeExcelWithFormula(String fileName) throws IOException{\r\n\t\tWorkbook workbook = new XSSFWorkbook();\r\n\t\tSheet sheet = workbook.createSheet(\"Numbers\");\r\n\t\tRow row = sheet.createRow(0);\r\n\t\trow.createCell(0).setCellValue(10);\r\n\t\trow.createCell(1).setCellValue(20);\r\n\t\trow.createCell(2).setCellValue(30);\r\n\t\t\/\/set formula cell\r\n\t\trow.createCell(3).setCellFormula(\"A1*B1*C1\");\r\n\t\t\r\n\t\t\/\/lets write to file\r\n\t\tFileOutputStream fos = new FileOutputStream(fileName);\r\n\t\tworkbook.write(fos);\r\n\t\tfos.close();\r\n\t\tSystem.out.println(fileName + \" written successfully\");\r\n\t}\r\n\t\r\n\tpublic static void main(String[] args) throws IOException {\r\n\t\twriteExcelWithFormula(\"Formulas.xlsx\");\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306eApache POI API\u306e\u4f8b\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u751f\u6210\u3055\u308c\u305fExcel\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u4ee5\u4e0b\u306e\u753b\u50cf\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3067Excel\u30d5\u30a1\u30a4\u30eb\u306e\u64cd\u4f5c\u306b\u95a2\u3059\u308bApache POI\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306f\u7d42\u308f\u308a\u3067\u3059\u3002\u3055\u3089\u306a\u308b\u6a5f\u80fd\u3092\u5b66\u3076\u305f\u3081\u306b\u3001Apache POI\u306e\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3092\u8abf\u3079\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u53c2\u8003\u6587\u732e: Apache POI\u958b\u767a\u8005\u30ac\u30a4\u30c9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300cApache POI\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3078\u3088\u3046\u3053\u305d\u3002\u6642\u306b\u306f\u3001\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u30a8\u30af\u30bb\u30eb\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u53d6\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3084\u3001\u4e3b\u306b\u30d3\u30b8\u30cd\u30b9\u3084\u91d1\u878d\u76ee\u7684\u3067\u30a8\u30af\u30bb\u30eb\u5f62\u5f0f\u306e\u30ec\u30dd\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Java\u306b\u306fExcel\u30d5 [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-474","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Apache POI\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Apache POI\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/apache-poi\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Apache POI\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\" \/>\n<meta property=\"og:description\" content=\"Apache POI\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/apache-poi\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-11T07:03:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T14:52:16+00:00\" \/>\n<meta name=\"author\" content=\"\u5149, \u660e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5149, \u660e\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"25\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/apache-poi%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/apache-poi%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/\",\"name\":\"Apache POI\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-01-11T07:03:48+00:00\",\"dateModified\":\"2025-07-31T14:52:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55\"},\"description\":\"Apache POI\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/apache-poi%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/apache-poi%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/apache-poi%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Apache POI\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55\",\"name\":\"\u5149, \u660e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g\",\"caption\":\"\u5149, \u660e\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hikariakira\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/apache-poi%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Apache POI\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud","description":"Apache POI\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/apache-poi\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/","og_locale":"ja_JP","og_type":"article","og_title":"Apache POI\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb","og_description":"Apache POI\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/apache-poi\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-01-11T07:03:48+00:00","article_modified_time":"2025-07-31T14:52:16+00:00","author":"\u5149, \u660e","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u5149, \u660e","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"25\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/apache-poi%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/apache-poi%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/","name":"Apache POI\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-01-11T07:03:48+00:00","dateModified":"2025-07-31T14:52:16+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55"},"description":"Apache POI\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/apache-poi%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/apache-poi%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/apache-poi%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Apache POI\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55","name":"\u5149, \u660e","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g","caption":"\u5149, \u660e"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hikariakira\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/apache-poi%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=474"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/474\/revisions"}],"predecessor-version":[{"id":41073,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/474\/revisions\/41073"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}