<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>odz</author_name>
  <author_url>https://blog.hatena.ne.jp/odz/</author_url>
  <blog_title>odz buffer</blog_title>
  <blog_url>https://odz.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>昨日のPrintWriterの件に激しく誤解した「仕様です」との指摘が来たので説明ついでに検証しておく。 別に、生成したストリームを全部、個別に close しないといけないといったわけじゃなくて、 writer = new OutputStreamWriter(new FileOutputStream(file), encoding);だと、invalid なエンコーディングを指定された場合に、OutputStreamWriter のコンストラクタが UnsupportedEncodingException を投げるわけで、そのとき writer は null になると。で、その場合、すでに…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fodz.hatenablog.com%2Fentry%2F20061017%2F1161135888&quot; title=&quot;昨日の PrintWriter の件 - odz buffer&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>2006-10-17 10:44:48</published>
  <title>昨日の PrintWriter の件</title>
  <type>rich</type>
  <url>https://odz.hatenablog.com/entry/20061017/1161135888</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
