|
Kagetaka | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectnet.hizlab.kagetaka.rendering.Document
ドキュメント全体を表すクラスです。
| フィールドの概要 | |
static int |
ZONE_INTERNET
インターネットゾーン |
static int |
ZONE_LOCAL
ローカルゾーン |
| コンストラクタの概要 | |
Document(URL url,
ContentType contentType,
String encoding,
int contentLength,
int media)
新しいドキュメントのインスタンスを作成します。 |
|
| メソッドの概要 | |
URL |
createURL(String href)
ドキュメントの URL をベースに URL を返します。 |
URL |
getBaseURL()
ベース URL を返します。 |
int |
getContentLength()
コンテンツの長さを返します。 |
ContentType |
getContentType()
コンテンツタイプを返します。 |
String |
getEncoding()
ドキュメントのエンコーディングを返します。 |
int |
getMedia()
メディアタイプを返します。 |
URL |
getURL()
ドキュメントの URL を返します。 |
void |
setBaseURL(URL url)
ベース URL を変更します。 |
void |
setContentLength(int length)
コンテンツの長さを設定します。 |
void |
setEncoding(String encoding)
ドキュメントのエンコーディングを設定します。 |
void |
setMedia(int media)
メディアタイプを設定します。 |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
public static final int ZONE_INTERNET
public static final int ZONE_LOCAL
| コンストラクタの詳細 |
public Document(URL url,
ContentType contentType,
String encoding,
int contentLength,
int media)
url - ドキュメントの URLcontentType - コンテンツタイプencoding - エンコーディングcontentLength - コンテンツの大きさ
不明な場合は -1media - メディア| メソッドの詳細 |
public URL createURL(String href)
throws MalformedURLException,
SecurityException
href - パス
MalformedURLException - パスが不正な場合
SecurityException - セキュリティ違反の場合public URL getBaseURL()
public int getContentLength()
public ContentType getContentType()
public String getEncoding()
public int getMedia()
public URL getURL()
public void setBaseURL(URL url)
url - ベース URLpublic void setContentLength(int length)
length - コンテンツの長さpublic void setEncoding(String encoding)
encoding - ドキュメントのエンコーディングpublic void setMedia(int media)
media - メディアタイプ
|
Kagetaka | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright (c) 2002-2003 The Kagetaka Project 'September 12, 2003'