Kagetaka

net.hizlab.kagetaka.protocol.about
クラス AboutURLConnection

java.lang.Object
  拡張java.net.URLConnection
      拡張net.hizlab.kagetaka.protocol.about.AboutURLConnection

public class AboutURLConnection
extends URLConnection

about プロトコルのコネクションを表します。

バージョン:
$Revision: 1.2 $

フィールドの概要
 
クラス java.net.URLConnection から継承したフィールド
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
メソッドの概要
 void connect()
          この URL が参照するリソースへの通信リンクを確立します (通信リンクが確立されていない場合)。
 String getContentType()
          content-type ヘッダーフィールドの値を返します。
 InputStream getInputStream()
          この接続からの入力を受け取る入力ストリームを返します。
 OutputStream getOutputStream()
          この接続にデータを送る出力ストリームを返します。
 
クラス java.net.URLConnection から継承したメソッド
addRequestProperty, getAllowUserInteraction, getContent, getContent, getContentEncoding, getContentLength, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getLastModified, getPermission, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setRequestProperty, setUseCaches, toString
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

メソッドの詳細

connect

public void connect()
             throws IOException
この URL が参照するリソースへの通信リンクを確立します (通信リンクが確立されていない場合)。

例外:
IOException - 接続の確立中に I/O エラーが発生した場合

getContentType

public String getContentType()
content-type ヘッダーフィールドの値を返します。

戻り値:
URL が参照するリソースの情報の種類。 不明の場合は null

getInputStream

public InputStream getInputStream()
                           throws IOException
この接続からの入力を受け取る入力ストリームを返します。

戻り値:
この接続からの入力を受け取る入力ストリーム
例外:
IOException - 入力ストリームの作成中に I/O エラーが発生した場合

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
この接続にデータを送る出力ストリームを返します。

戻り値:
この接続へ送る出力ストリーム
例外:
IOException - 出力ストリームの作成中に I/O エラーが発生した場合

Kagetaka

Copyright (c) 2002-2004 The Kagetaka Project 'November 20, 2004'