<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nosa1</author_name>
  <author_url>https://blog.hatena.ne.jp/nosa1/</author_url>
  <blog_title>Narwhal</blog_title>
  <blog_url>https://nosa1.hatenadiary.org/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>Java7からnioにFilesが追加されたりと諸々ファイル周りのAPIが強化されてますね。 個人的には、Zipをライブラリに頼らず、Javaだけでサクッとやりたいと思ってました。 Zip File System Providerまぁドキュメントやらgoogle先生に助けてもらって実装出来たんですけど、 圧縮は問題なさそうですね。 SimpleFileVisitorでディレクトリを探索して、Zipに追加って感じで。 相対パスをちゃんと考えないといけないので、 変数名を分かりやすくしとかないと若干混乱します。で、解凍なんですが、圧縮と同じような考えでいけます。 解凍のほうがコードは短くすみます。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnosa1.hatenadiary.org%2Fentry%2F20140303%2F1393827439&quot; title=&quot;Java7 Zip - Narwhal&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-03-03 15:17:19</published>
  <title>Java7 Zip</title>
  <type>rich</type>
  <url>https://nosa1.hatenadiary.org/entry/20140303/1393827439</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
