<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xmldtp</author_name>
  <author_url>https://blog.hatena.ne.jp/xmldtp/</author_url>
  <blog_title>ウィリアムのいたずらの、まちあるき、たべあるきーPART2</blog_title>
  <blog_url>https://xmldtp.hatenadiary.org/</blog_url>
  <categories>
    <anon>Weblog</anon>
  </categories>
  <description>まえに、 オブジェクト指向で開発するという場合、多態性を利用して、はじめのうちは、メディアをはっきりさせず、入力、出力を共通的なインターフェースを使って設計しておき、最終段階で実際の入出力メディアを決めるという開発方法もありえます。 と書いたけど、実際に、どうやるかを書いていなかったので、ちょっと書いてみる。 ■まず、各入出力デバイスのクラスを作るんだけど・・・ Readable,Writableというインターフェースを用意する。 interface Readable { int open(String name); int read(byte[] str); int close(); Str…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxmldtp.hatenadiary.org%2Fentry%2Ffc2cf630e1732c4dee0cba5a42662716&quot; title=&quot;JavaBeansと多態性を使って、入出力デバイスを柔軟に切り替える - ウィリアムのいたずらの、まちあるき、たべあるきーPART2&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>2009-10-22 13:18:02</published>
  <title>JavaBeansと多態性を使って、入出力デバイスを柔軟に切り替える</title>
  <type>rich</type>
  <url>https://xmldtp.hatenadiary.org/entry/fc2cf630e1732c4dee0cba5a42662716</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
