View Javadoc
1   package org.exolab.castor.xml;
2   
3   import org.xml.sax.ContentHandler;
4   import org.xml.sax.ErrorHandler;
5   
6   /**
7    * A interface which extends {@link SAX2EventProducer}. {@link SAX2EventProducer} abstracts anything
8    * which can produce SAX 2 events, and invoke the corresponding callback methods on the given
9    * {@link ContentHandler}.
10   * 
11   * <p>
12   * This interface also handles SAX 2 parse exceptions and invokes the corresponding methods on the
13   * given {@link ErrorHandler}.
14   * </p>
15   * 
16   * @author <a href="mailto:philipp DOT erlacher AT gmail DOT com">Philipp Erlacher</a>
17   * 
18   * @see SAX2EventProducer
19   * @see ErrorHandler
20   * 
21   */
22  public interface SAX2EventAndErrorProducer extends SAX2EventProducer {
23  
24    /**
25     * Sets the SAX2 ErrorHandler to send SAX 2 errors to
26     */
27    void setErrorHandler(ErrorHandler handler);
28  
29  }