org.exolab.castor.xml.SAX2EventAndErrorProducer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of castor-xml Show documentation
Show all versions of castor-xml Show documentation
The core XML data binding framework with support for marshalling Java objects to
and unmarshalling from XML documents.
The newest version!
package org.exolab.castor.xml;
import org.xml.sax.ContentHandler;
import org.xml.sax.ErrorHandler;
/**
* A interface which extends {@link SAX2EventProducer}. {@link SAX2EventProducer} abstracts anything
* which can produce SAX 2 events, and invoke the corresponding callback methods on the given
* {@link ContentHandler}.
*
*
* This interface also handles SAX 2 parse exceptions and invokes the corresponding methods on the
* given {@link ErrorHandler}.
*
*
* @author Philipp Erlacher
*
* @see SAX2EventProducer
* @see ErrorHandler
*
*/
public interface SAX2EventAndErrorProducer extends SAX2EventProducer {
/**
* Sets the SAX2 ErrorHandler to send SAX 2 errors to
*/
void setErrorHandler(ErrorHandler handler);
}