|
XML Library 1.0 | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.koiroha.xml.Html
public final class Html
HTML を扱うためのユーティリティクラスです。
メソッドの概要 | |
---|---|
static int |
getCharacter(String entity)
指定された HTML 実体参照に対応する文字を返します。 |
static String |
getEntityReference(char ch)
指定された文字に対する実体参照または数値参照を参照します。 |
static String |
unescape(String text)
HTML でエスケープされた文字列 (実体参照化された文字列) を解除します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
メソッドの詳細 |
---|
public static int getCharacter(String entity) throws NullPointerException
' は HTML では定義されていませんので負の値を返します。
entity
- 実体参照の文字列 (" ", "Ѐ" など)
NullPointerException
- entity に null を指定した場合public static String getEntityReference(char ch)
ch
- 実体参照を参照する文字
public static String unescape(String text)
text
- 実体参照を戻す文字列
|
koiroha.org by takami torao | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |