{"id":397,"date":"2023-01-09T22:17:05","date_gmt":"2022-08-05T15:01:32","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/java%e3%81%aezip%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%83%bc%e3%81%ae%e4%be%8b%e3%82%92%e7%a4%ba%e3%81%97%e3%81%be%e3%81%99%e3%80%82\/"},"modified":"2025-07-31T23:16:24","modified_gmt":"2025-07-31T14:16:24","slug":"java%e3%81%aezip%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%83%bc%e3%81%ae%e4%be%8b%e3%82%92%e7%a4%ba%e3%81%97%e3%81%be%e3%81%99%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%aezip%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%83%bc%e3%81%ae%e4%be%8b%e3%82%92%e7%a4%ba%e3%81%97%e3%81%be%e3%81%99%e3%80%82\/","title":{"rendered":"Java\u306eZip\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002"},"content":{"rendered":"<p>\u4eca\u65e5\u306fJava\u306ezip\u30d5\u30a1\u30a4\u30eb\u306e\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u3055\u3089\u306b\u3001Java\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a9\u30eb\u30c0\u3092\u5727\u7e2e\u3057\u3066zip\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<h2>Java\u306eZIP<\/h2>\n<p>java.util.zip.ZipOutputStream\u3092\u4f7f\u3046\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u3092ZIP\u5f62\u5f0f\u3067\u5727\u7e2e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002ZIP\u30d5\u30a1\u30a4\u30eb\u306f\u8907\u6570\u306e\u30a8\u30f3\u30c8\u30ea\u3092\u542b\u3080\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001ZipOutputStream\u306fjava.util.zip.ZipEntry\u3092\u4f7f\u7528\u3057\u3066ZIP\u30d5\u30a1\u30a4\u30eb\u306e\u30a8\u30f3\u30c8\u30ea\u3092\u8868\u3057\u307e\u3059\u3002<\/p>\n<h3>Java\u306eZIP\u30d5\u30a1\u30a4\u30eb<\/h3>\n<p>\u5358\u4e00\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u306eZIP\u30a2\u30fc\u30ab\u30a4\u30d6\u306e\u4f5c\u6210\u306f\u975e\u5e38\u306b\u7c21\u5358\u3067\u3059\u3002\u307e\u305a\u3001\u5b9b\u5148\u30d5\u30a1\u30a4\u30eb\u306eFileOutputStream\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3089ZipOutputStream\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u6b21\u306b\u3001ZipOutputStream\u306b\u65b0\u3057\u3044ZipEntry\u3092\u8ffd\u52a0\u3057\u3001\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u305f\u3081\u306bFileInputStream\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u66f8\u304d\u8fbc\u307f\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001ZipEntry\u3092\u9589\u3058\u3066\u3059\u3079\u3066\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u89e3\u653e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30b8\u30e3\u30d0\u306eZip\u30d5\u30a9\u30eb\u30c0<\/h3>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5727\u7e2e\u306f\u5c11\u3057\u30c8\u30ea\u30c3\u30ad\u30fc\u3067\u3059\u3002\u307e\u305a\u3001\u30d5\u30a1\u30a4\u30eb\u30ea\u30b9\u30c8\u3092\u7d76\u5bfe\u30d1\u30b9\u3067\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u6b21\u306b\u3001\u305d\u308c\u305e\u308c\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u500b\u5225\u306b\u51e6\u7406\u3057\u307e\u3059\u3002\u5404\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066ZipEntry\u3092\u8ffd\u52a0\u3057\u3001\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092ZipEntry\u306b\u5bfe\u5fdc\u3059\u308b\u3088\u3046\u306bFileInputStream\u3092\u4f7f\u7528\u3057\u3066\u8aad\u307f\u8fbc\u3080\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>Java\u306eZip\u306e\u4f8b<\/h3>\n<p>\u4ee5\u4e0b\u306b\u3001\u5358\u4e00\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5727\u7e2e\u3057\u305f\u308a\u3001\u30d5\u30a9\u30eb\u30c0\u3092\u5727\u7e2e\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3059Java\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.files;\r\n\r\nimport java.io.File;\r\nimport java.io.FileInputStream;\r\nimport java.io.FileOutputStream;\r\nimport java.io.IOException;\r\nimport java.util.ArrayList;\r\nimport java.util.List;\r\nimport java.util.zip.ZipEntry;\r\nimport java.util.zip.ZipOutputStream;\r\n\r\npublic class ZipFiles {\r\n    \r\n    List&lt;String&gt; filesListInDir = new ArrayList&lt;String&gt;();\r\n\r\n    public static void main(String[] args) {\r\n        File file = new File(\"\/Users\/scdev\/sitemap.xml\");\r\n        String zipFileName = \"\/Users\/scdev\/sitemap.zip\";\r\n        \r\n        File dir = new File(\"\/Users\/scdev\/tmp\");\r\n        String zipDirName = \"\/Users\/scdev\/tmp.zip\";\r\n        \r\n        zipSingleFile(file, zipFileName);\r\n        \r\n        ZipFiles zipFiles = new ZipFiles();\r\n        zipFiles.zipDirectory(dir, zipDirName);\r\n    }\r\n\r\n    \/**\r\n     * This method zips the directory\r\n     * @param dir\r\n     * @param zipDirName\r\n     *\/\r\n    private void zipDirectory(File dir, String zipDirName) {\r\n        try {\r\n            populateFilesList(dir);\r\n            \/\/now zip files one by one\r\n            \/\/create ZipOutputStream to write to the zip file\r\n            FileOutputStream fos = new FileOutputStream(zipDirName);\r\n            ZipOutputStream zos = new ZipOutputStream(fos);\r\n            for(String filePath : filesListInDir){\r\n                System.out.println(\"Zipping \"+filePath);\r\n                \/\/for ZipEntry we need to keep only relative file path, so we used substring on absolute path\r\n                ZipEntry ze = new ZipEntry(filePath.substring(dir.getAbsolutePath().length()+1, filePath.length()));\r\n                zos.putNextEntry(ze);\r\n                \/\/read the file and write to ZipOutputStream\r\n                FileInputStream fis = new FileInputStream(filePath);\r\n                byte[] buffer = new byte[1024];\r\n                int len;\r\n                while ((len = fis.read(buffer)) &gt; 0) {\r\n                    zos.write(buffer, 0, len);\r\n                }\r\n                zos.closeEntry();\r\n                fis.close();\r\n            }\r\n            zos.close();\r\n            fos.close();\r\n        } catch (IOException e) {\r\n            e.printStackTrace();\r\n        }\r\n    }\r\n    \r\n    \/**\r\n     * This method populates all the files in a directory to a List\r\n     * @param dir\r\n     * @throws IOException\r\n     *\/\r\n    private void populateFilesList(File dir) throws IOException {\r\n        File[] files = dir.listFiles();\r\n        for(File file : files){\r\n            if(file.isFile()) filesListInDir.add(file.getAbsolutePath());\r\n            else populateFilesList(file);\r\n        }\r\n    }\r\n\r\n    \/**\r\n     * This method compresses the single file to zip format\r\n     * @param file\r\n     * @param zipFileName\r\n     *\/\r\n    private static void zipSingleFile(File file, String zipFileName) {\r\n        try {\r\n            \/\/create ZipOutputStream to write to the zip file\r\n            FileOutputStream fos = new FileOutputStream(zipFileName);\r\n            ZipOutputStream zos = new ZipOutputStream(fos);\r\n            \/\/add a new Zip Entry to the ZipOutputStream\r\n            ZipEntry ze = new ZipEntry(file.getName());\r\n            zos.putNextEntry(ze);\r\n            \/\/read the file and write to ZipOutputStream\r\n            FileInputStream fis = new FileInputStream(file);\r\n            byte[] buffer = new byte[1024];\r\n            int len;\r\n            while ((len = fis.read(buffer)) &gt; 0) {\r\n                zos.write(buffer, 0, len);\r\n            }\r\n            \r\n            \/\/Close the zip entry to write to zip file\r\n            zos.closeEntry();\r\n            \/\/Close resources\r\n            zos.close();\r\n            fis.close();\r\n            fos.close();\r\n            System.out.println(file.getCanonicalPath()+\" is zipped to \"+zipFileName);\r\n            \r\n        } catch (IOException e) {\r\n            e.printStackTrace();\r\n        }\r\n\r\n    }\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306eJava\u306ezip\u306e\u4f8b\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u51fa\u529b\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a<\/p>\n<pre class=\"post-pre\"><code>\/Users\/scdev\/sitemap.xml is zipped to \/Users\/scdev\/sitemap.zip\r\nZipping \/Users\/scdev\/tmp\/.DS_Store\r\nZipping \/Users\/scdev\/tmp\/data\/data.dat\r\nZipping \/Users\/scdev\/tmp\/data\/data.xml\r\nZipping \/Users\/scdev\/tmp\/data\/xmls\/project.xml\r\nZipping \/Users\/scdev\/tmp\/data\/xmls\/web.xml\r\nZipping \/Users\/scdev\/tmp\/data.Xml\r\nZipping \/Users\/scdev\/tmp\/DB.xml\r\nZipping \/Users\/scdev\/tmp\/item.XML\r\nZipping \/Users\/scdev\/tmp\/item.xsd\r\nZipping \/Users\/scdev\/tmp\/ms\/data.txt\r\nZipping \/Users\/scdev\/tmp\/ms\/project.doc\r\n<\/code><\/pre>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092zip\u306b\u4fdd\u5b58\u3059\u308b\u969b\u306b\u3001\u7d76\u5bfe\u30d1\u30b9\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u304c\u3001zip\u30a8\u30f3\u30c8\u30ea\u3092\u8ffd\u52a0\u3059\u308b\u969b\u306b\u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u306e\u76f8\u5bfe\u30d1\u30b9\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u89e3\u51cd\u6642\u306b\u540c\u3058\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u304c\u4f5c\u6210\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u4ee5\u4e0a\u304cJava\u306ezip\u306e\u4f8b\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u65e5\u306fJava\u306ezip\u30d5\u30a1\u30a4\u30eb\u306e\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u3055\u3089\u306b\u3001Java\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a9\u30eb\u30c0\u3092\u5727\u7e2e\u3057\u3066zip\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 Java\u306eZIP java.util.zip.ZipOutputStream\u3092\u4f7f\u3046\u3068 [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-397","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>Java\u306eZip\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Java\u306eZip\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\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\/java\u306ezip\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java\u306eZip\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:description\" content=\"Java\u306eZip\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\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\/java\u306ezip\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-05T15:01:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T14:16:24+00:00\" \/>\n<meta name=\"author\" content=\"\u6d77\u6597, \u8475\" \/>\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=\"\u6d77\u6597, \u8475\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"10\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\/java%e3%81%aezip%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%83%bc%e3%81%ae%e4%be%8b%e3%82%92%e7%a4%ba%e3%81%97%e3%81%be%e3%81%99%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%aezip%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%83%bc%e3%81%ae%e4%be%8b%e3%82%92%e7%a4%ba%e3%81%97%e3%81%be%e3%81%99%e3%80%82\/\",\"name\":\"Java\u306eZip\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-08-05T15:01:32+00:00\",\"dateModified\":\"2025-07-31T14:16:24+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6\"},\"description\":\"Java\u306eZip\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\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\/java%e3%81%aezip%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%83%bc%e3%81%ae%e4%be%8b%e3%82%92%e7%a4%ba%e3%81%97%e3%81%be%e3%81%99%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%aezip%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%83%bc%e3%81%ae%e4%be%8b%e3%82%92%e7%a4%ba%e3%81%97%e3%81%be%e3%81%99%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%aezip%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%83%bc%e3%81%ae%e4%be%8b%e3%82%92%e7%a4%ba%e3%81%97%e3%81%be%e3%81%99%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\u306eZip\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002\"}]},{\"@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\/20cfc053626f4d45c0fa7a4e7964b5b6\",\"name\":\"\u6d77\u6597, \u8475\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g\",\"caption\":\"\u6d77\u6597, \u8475\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/kaitoaoi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%aezip%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%83%bc%e3%81%ae%e4%be%8b%e3%82%92%e7%a4%ba%e3%81%97%e3%81%be%e3%81%99%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Java\u306eZip\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002 - Blog - Silicon Cloud","description":"Java\u306eZip\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\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\/java\u306ezip\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002\/","og_locale":"ja_JP","og_type":"article","og_title":"Java\u306eZip\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002","og_description":"Java\u306eZip\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\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\/java\u306ezip\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-08-05T15:01:32+00:00","article_modified_time":"2025-07-31T14:16:24+00:00","author":"\u6d77\u6597, \u8475","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u6d77\u6597, \u8475","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"10\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%aezip%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%83%bc%e3%81%ae%e4%be%8b%e3%82%92%e7%a4%ba%e3%81%97%e3%81%be%e3%81%99%e3%80%82\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%aezip%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%83%bc%e3%81%ae%e4%be%8b%e3%82%92%e7%a4%ba%e3%81%97%e3%81%be%e3%81%99%e3%80%82\/","name":"Java\u306eZip\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-08-05T15:01:32+00:00","dateModified":"2025-07-31T14:16:24+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6"},"description":"Java\u306eZip\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\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\/java%e3%81%aezip%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%83%bc%e3%81%ae%e4%be%8b%e3%82%92%e7%a4%ba%e3%81%97%e3%81%be%e3%81%99%e3%80%82\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%aezip%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%83%bc%e3%81%ae%e4%be%8b%e3%82%92%e7%a4%ba%e3%81%97%e3%81%be%e3%81%99%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%aezip%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%83%bc%e3%81%ae%e4%be%8b%e3%82%92%e7%a4%ba%e3%81%97%e3%81%be%e3%81%99%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Java\u306eZip\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002"}]},{"@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\/20cfc053626f4d45c0fa7a4e7964b5b6","name":"\u6d77\u6597, \u8475","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g","caption":"\u6d77\u6597, \u8475"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/kaitoaoi\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%aezip%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%83%bc%e3%81%ae%e4%be%8b%e3%82%92%e7%a4%ba%e3%81%97%e3%81%be%e3%81%99%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/397","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=397"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/397\/revisions"}],"predecessor-version":[{"id":40076,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/397\/revisions\/40076"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}