|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectnet.hizlab.kagetaka.rendering.Content
コンテンツを表すクラスです。
フィールドの概要 | |
protected URLConnection |
connection
コネクション |
int |
contentLength
ドキュメントのコンテンツサイズ |
protected ContentType |
contentType
ドキュメントのコンテンツタイプ |
long |
date
ドキュメントの取得日付 |
long |
destroy
ドキュメントの破棄日付 |
String |
eTag
ドキュメントの最終更新日 |
long |
expiration
ドキュメントの有効期限 |
protected InputStream |
inputStream
インプットストリーム |
long |
lastModified
ドキュメントの最終更新日 |
protected Object |
object
コンテンツオブジェクト |
protected boolean |
timeAdjustment
時刻の補正をするかどうか |
static int |
TYPE_ALL
全タイプ |
static int |
TYPE_AUDIO
audio タイプ |
static int |
TYPE_IMAGE
image タイプ |
static int |
TYPE_TEXT
text タイプ |
URL |
url
ドキュメントの URL |
コンストラクタの概要 | |
Content(URLConnection connection)
コンテンツを作成します。 |
メソッドの概要 | |
ContentType |
getContentType()
コンテンツタイプを返します。 |
String |
getEncoding()
ドキュメントのエンコーディングを返します。 |
InputStream |
getInputStream(Reporter reporter)
コンテンツを読み取る入力ストリームを返します。 |
Object |
getObject(int type)
コンテンツの中身をオブジェクトととして返します。 |
boolean |
isCached()
キャッシュされたコンテンツかどうかを返します。 |
void |
setEncoding(String encoding)
ドキュメントのエンコーディングを設定します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected URLConnection connection
public final int contentLength
protected ContentType contentType
public final long date
public final long destroy
public final String eTag
public final long expiration
protected InputStream inputStream
public final long lastModified
protected Object object
protected boolean timeAdjustment
public static final int TYPE_ALL
public static final int TYPE_AUDIO
public static final int TYPE_IMAGE
public static final int TYPE_TEXT
public final URL url
コンストラクタの詳細 |
public Content(URLConnection connection)
connection
- コネクションメソッドの詳細 |
public ContentType getContentType()
public String getEncoding()
public InputStream getInputStream(Reporter reporter) throws IOException
reporter
- レポータ
IOException
- IO エラーが発生した場合public Object getObject(int type) throws IOException
type
- 取得するコンテンツのタイプ
IOException
- IO エラーが発生した場合public boolean isCached()
true
、
それ以外の場合は false
public void setEncoding(String encoding)
encoding
- ドキュメントのエンコーディング
|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Copyright (c) 2002-2004 The Kagetaka Project 'November 20, 2004'