Exceptions

   

XMLFilter

XMLFilter extends XMLReader with two methods :

  • XMLReader getParent() ”Gets the parent reader

  • void setParent(XMLReader parent) ”Sets the parent reader

An XMLFilter is similar to an XMLReader , but it obtains its events from another XMLReader . Typically, the XMLFilter filters some or all of the events.

Tip

XMLFilterImpl , in the org.xml.sax.helpers package, is convenient when implementing filters. The class forwards the events from its parents to the appropriate event handlers. Your application needs to override only those events it must filter.


   


Applied XML Solutions
Applied XML Solutions
ISBN: 0672320541
EAN: 2147483647
Year: 1999
Pages: 142

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net