Java対応携帯電話の特徴の1つとして、「ネットワークとの親和性」があります。これは携帯電話自身がネットワークアダプタとしての機能を持っていることと、Java言語の仕様がネットワークの利用を容易に行えるようになっているためです。特にJ2ME CLDC(Connected Limited Device Configuration)環境では、パッケージjavax.microedition.ioにGeneric Connection Framework(以下Generic Connection)という、ネットワークを簡単に扱うための仕様が用意されています。DoJaはJ2ME CLDCをベースに構築されているため、この仕様を使い簡単にそれぞれのネットワークにアクセスすることができます。 今回は、このGeneric Connectionを利用して、HTTP通信とスクラッチパッドへのアクセスを行うサン