JavaTM 2 Platform
Standard Ed. 6

介面 org.xml.sax.DocumentHandler
的使用

使用 DocumentHandler 的軟體套件
org.xml.sax 此套件提供了核心 SAX API。 
org.xml.sax.helpers 此套件包含“說明器”類別,其中包括對引導基於 SAX 的應用程序的支持。 
 

org.xml.sax 中 DocumentHandler 的使用
 

實作 DocumentHandler 的 org.xml.sax 中的類別
 class HandlerBase
          已過時。 此類別可可以與不推薦使用的 DocumentHandler 介面一起工作。它已經被 SAX2 DefaultHandler 類別所取代。
 

參數型別為 DocumentHandler 的 org.xml.sax 中的方法
 void Parser.setDocumentHandler(DocumentHandler handler)
          已過時。 允許應用程序註冊文檔事件處理程序。
 

org.xml.sax.helpers 中 DocumentHandler 的使用
 

實作 DocumentHandler 的 org.xml.sax.helpers 中的類別
 class ParserAdapter
          將 SAX1 Parser 適配為 SAX2 XMLReader。
 

參數型別為 DocumentHandler 的 org.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。