public class HTML extends Object
HTMLDocument常数。这些基本上都是标签和属性定义。
| Modifier and Type | Class and Description |
|---|---|
static class |
HTML.Attribute
类型安全枚举表示HTML属性。
|
static class |
HTML.Tag
类型安全枚举一个HTML标签。
|
static class |
HTML.UnknownTag |
| Modifier and Type | Field and Description |
|---|---|
static String |
NULL_ATTRIBUTE_VALUE |
| Constructor and Description |
|---|
HTML() |
| Modifier and Type | Method and Description |
|---|---|
static HTML.Attribute[] |
getAllAttributeKeys()
返回HTML设置认可。
|
static HTML.Tag[] |
getAllTags()
返回实际的HTML标签,默认的HTML阅读器识别设置。
|
static HTML.Attribute |
getAttributeKey(String attName)
获取一个属性的一个著名的属性名称不变(即
|
static int |
getIntegerAttributeValue(AttributeSet attr, HTML.Attribute key, int def)
取一个整数属性值。
|
static HTML.Tag |
getTag(String tagName)
读取一个标签的一个著名的标签名称不变(即
|
public static final String NULL_ATTRIBUTE_VALUE
public static HTML.Tag[] getAllTags()
public static HTML.Tag getTag(String tagName)
null将返回。
tagName -
String名称要求
tagName,或
null如果没有找到
public static int getIntegerAttributeValue(AttributeSet attr, HTML.Attribute key, int def)
attr -属性用来获取一个值集
key -使用获取价值的关键
def -使用如果属性不确定的或有错误转换为整数,默认值
public static HTML.Attribute[] getAllAttributeKeys()
public static HTML.Attribute getAttributeKey(String attName)
null将返回。
attName -
String要求
Attribute
attName
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.