接口的使用
org.xml.sax.Attributes
使用 Attributes 的包
包
描述
为 XML (SAX) 的简单 API 提供接口。
为符合标准的 SAX 驱动程序不一定支持的 SAX2 设施提供接口。
提供帮助程序类,包括对引导基于 SAX 的应用程序的支持。
-
Attributes 在 org.xml.sax 中的用法
org.xml.sax 中的方法,参数类型为 Attributes修饰符和类型方法描述void
ContentHandler.startElement
(String uri, String localName, String qName, Attributes atts) 接收元素开始的通知。 -
Attributes 在 org.xml.sax.ext 中的用法
org.xml.sax.ext 中 Attributes 的子接口org.xml.sax.ext 中实现 Attributes 的类org.xml.sax.ext 中的方法,参数类型为 Attributesorg.xml.sax.ext 中的构造函数,参数类型为 Attributes -
Attributes 在 org.xml.sax.helpers 中的用法
org.xml.sax.helpers 中实现 Attributes 的类org.xml.sax.helpers 中的方法,参数类型为 Attributes修饰符和类型方法描述void
AttributesImpl.setAttributes
(Attributes atts) 复制整个 Attributes 对象。void
DefaultHandler.startElement
(String uri, String localName, String qName, Attributes attributes) 接收元素开始的通知。void
XMLFilterImpl.startElement
(String uri, String localName, String qName, Attributes atts) 过滤开始元素事件。void
XMLReaderAdapter.startElement
(String uri, String localName, String qName, Attributes atts) 适配 SAX2 开始元素事件。org.xml.sax.helpers 中的构造函数,参数类型为 Attributes