Kagetaka

net.hizlab.kagetaka.viewer
クラス ViewerContent

java.lang.Object
  拡張net.hizlab.kagetaka.rendering.Content
      拡張net.hizlab.kagetaka.viewer.ViewerContent

public class ViewerContent
extends Content

ビューア用の拡張コンテンツを表すクラスです。

バージョン:
$Revision: 1.10 $

フィールドの概要
 
クラス net.hizlab.kagetaka.rendering.Content から継承したフィールド
connection, contentLength, contentType, date, destroy, eTag, expiration, inputStream, lastModified, object, timeAdjustment, TYPE_ALL, TYPE_AUDIO, TYPE_IMAGE, TYPE_TEXT, url
 
コンストラクタの概要
ViewerContent(URLConnection connection, net.hizlab.kagetaka.viewer.CacheEntry cacheEntry)
          キャッシュエントリを元にしたコンテンツを作成します。
ViewerContent(URLConnection connection, SSLCertification sslCertification)
          コンテンツを作成します。
 
メソッドの概要
 String getFileName()
          レポータを必要としないインプットストリームを返します。
 InputStream getInputStream(Reporter reporter)
          コンテンツを読み取る入力ストリームを返します。
 Object getObject(int type)
          コンテンツの中身をオブジェクトととして返します。
 SSLCertification getSSLCertification()
          SSL 証明書を返します。
 boolean isCached()
          キャッシュされたコンテンツかどうかを返します。
 
クラス net.hizlab.kagetaka.rendering.Content から継承したメソッド
getContentType, getEncoding, setEncoding
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ViewerContent

public ViewerContent(URLConnection connection,
                     net.hizlab.kagetaka.viewer.CacheEntry cacheEntry)
キャッシュエントリを元にしたコンテンツを作成します。

パラメータ:
connection - コネクション
cacheEntry - キャッシュエントリ

ViewerContent

public ViewerContent(URLConnection connection,
                     SSLCertification sslCertification)
コンテンツを作成します。

パラメータ:
connection - コネクション
sslCertification - SSL 証明書
メソッドの詳細

getFileName

public String getFileName()
レポータを必要としないインプットストリームを返します。

戻り値:
インプットストリーム

getInputStream

public InputStream getInputStream(Reporter reporter)
                           throws IOException
コンテンツを読み取る入力ストリームを返します。

オーバーライド:
クラス Content 内の getInputStream
パラメータ:
reporter - レポータ
戻り値:
入力ストリーム
例外:
IOException - IO エラーが発生した場合

getObject

public Object getObject(int type)
                 throws IOException
コンテンツの中身をオブジェクトととして返します。

オーバーライド:
クラス Content 内の getObject
パラメータ:
type - 取得するコンテンツのタイプ
戻り値:
コンテンツの中身
例外:
IOException - IO エラーが発生した場合

getSSLCertification

public SSLCertification getSSLCertification()
SSL 証明書を返します。

戻り値:
SSL 証明書

isCached

public boolean isCached()
キャッシュされたコンテンツかどうかを返します。

オーバーライド:
クラス Content 内の isCached
戻り値:
キャッシュされたコンテンツの場合は true、 それ以外の場合は false

Kagetaka

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