Difference between revisions of "XFastDocumentHandler"

From Apache OpenOffice Wiki
Jump to: navigation, search
(added draft documentation for the new XFastDocumentHandler interface)
 
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
−
See [[FastParser]]
+
See [[FastParser]],  [[XFastContextHandler]]
  
 
= Abstract =
 
= Abstract =
Line 6: Line 6:
  
 
<pre>
 
<pre>
−
interface XFastDocumentHandler: [[XFastContextHandler]]
+
 
 +
module com {  module sun {  module star {  module xml {  module sax { 
 +
 +
/** receives notification of sax document events from a
 +
<type>XFastParser</type>
 +
*/
 +
interface XFastDocumentHandler: XFastContextHandler
 
{  
 
{  
−
  void startDocument() raises( com::sun::star::xml::sax::SAXException );  
+
/** called by the parser when parsing of an xml stream is started.
−
  void endDocument() raises( com::sun::star::xml::sax::SAXException );  
+
*/
−
  void setDocumentLocator( [in] com::sun::star::xml::sax::XLocator xLocator ) raises( com::sun::star::xml::sax::SAXException );  
+
void startDocument()  
 +
raises( com::sun::star::xml::sax::SAXException );  
 +
 +
/** called by the parser after the last xml element of a stream is processed.
 +
*/
 +
void endDocument()  
 +
raises( com::sun::star::xml::sax::SAXException );  
 +
 
 +
/** receives an object for locating the origin of SAX document events.
 +
*/
 +
void setDocumentLocator( [in] com::sun::star::xml::sax::XLocator xLocator )  
 +
raises( com::sun::star::xml::sax::SAXException );  
 +
 
};  
 
};  
 +
 +
}; }; }; }; }; 
 +
 
</pre>
 
</pre>
−
 
+
[[Category:API]]
−
= Namespace =
 
−
 
 
−
com::sun::star::xml::sax
 

Latest revision as of 21:58, 24 March 2010

See FastParser, XFastContextHandler

Abstract

IDL


module com {  module sun {  module star {  module xml {  module sax {  
 
/** receives notification of sax document events from a
	<type>XFastParser</type>
 */
interface XFastDocumentHandler: XFastContextHandler
{ 
	/** called by the parser when parsing of an xml stream is started.
	 */
	void startDocument() 
			raises( com::sun::star::xml::sax::SAXException ); 
 
	/** called by the parser after the last xml element of a stream is processed.
	 */
	void endDocument() 
			raises( com::sun::star::xml::sax::SAXException ); 

	/** receives an object for locating the origin of SAX document events.
	 */
	void setDocumentLocator( [in] com::sun::star::xml::sax::XLocator xLocator ) 
			raises( com::sun::star::xml::sax::SAXException ); 
 
}; 
 
}; }; }; }; };  

Personal tools