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