|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectnet.hizlab.kagetaka.util.ContentType
Content-Type を解析するクラスです。
フィールドの概要 | |
static ContentType |
CT_CONTENT_UNKNOWN
content/unknown |
static ContentType |
CT_TEXT_CSS
text/css |
static ContentType |
CT_TEXT_HTML
text/html |
static ContentType |
CT_TEXT_PLAIN
text/plain |
コンストラクタの概要 | |
ContentType(String value)
指定された文字列を元に、文書タイプを作成します。 |
|
ContentType(String type,
String subtype)
指定されたタイプを元に、文書タイプを作成します。 |
メソッドの概要 | |
void |
clearParameter()
パラメータをクリアします。 |
boolean |
equalsType(String type,
String subtype)
タイプが一致するかを調べます。 |
String |
getParameter(String key)
指定したパラメータに対応する値を返します。 |
Enumeration |
getParameterKeys()
パラメータの属性値のリストを返します。 |
String |
getSubType()
サブタイプを返します。 |
String |
getType()
タイプを返します。 |
String |
putParameter(String key,
String value)
パラメータに新しい属性名と値を追加します。 |
String |
toString()
この文章タイプの文字列表現を返します。 |
static ContentType |
valueOf(String ct,
URL url)
指定された文書タイプと URL から、正しい文書タイプを取得します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
public static final ContentType CT_CONTENT_UNKNOWN
public static final ContentType CT_TEXT_CSS
public static final ContentType CT_TEXT_HTML
public static final ContentType CT_TEXT_PLAIN
コンストラクタの詳細 |
public ContentType(String value) throws ParseException
value
- Content-Type
ParseException
- 解析不能な Content-Type が指定された場合public ContentType(String type, String subtype)
type
- タイプsubtype
- サブタイプメソッドの詳細 |
public void clearParameter()
public boolean equalsType(String type, String subtype)
type
- タイプsubtype
- サブタイプ
true
、
しない場合は false
public String getParameter(String key)
key
- パラメータ属性名
null
public Enumeration getParameterKeys()
public String getSubType()
public String getType()
public String putParameter(String key, String value)
key
- パラメータ属性名value
- パラメータ値
null
public String toString()
public static ContentType valueOf(String ct, URL url) throws ParseException
ct
- Content-Typeurl
- URL
ParseException
- 解析不能な Content-Type が指定された場合
|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Copyright (c) 2002-2004 The Kagetaka Project 'November 20, 2004'