JavaTM 2 Platform
Standard Ed. 6

接口 org.xml.sax.DocumentHandler
的使用

使用 DocumentHandler 的软件包
org.xml.sax 此包提供了核心 SAX API。 
org.xml.sax.helpers 此包包含“帮助器”类,其中包括对引导基于 SAX 的应用程序的支持。 
 

org.xml.saxDocumentHandler 的使用
 

实现 DocumentHandlerorg.xml.sax 中的类
 class HandlerBase
          已过时。 此类可可以与不推荐使用的 DocumentHandler 接口一起工作。它已经被 SAX2 DefaultHandler 类所取代。
 

参数类型为 DocumentHandlerorg.xml.sax 中的方法
 void Parser.setDocumentHandler(DocumentHandler handler)
          已过时。 允许应用程序注册文档事件处理程序。
 

org.xml.sax.helpersDocumentHandler 的使用
 

实现 DocumentHandlerorg.xml.sax.helpers 中的类
 class ParserAdapter
          将 SAX1 Parser 适配为 SAX2 XMLReader。
 

参数类型为 DocumentHandlerorg.xml.sax.helpers 中的方法
 void XMLReaderAdapter.setDocumentHandler(DocumentHandler handler)
          注册 SAX1 文档事件处理程序。
 


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only