/** * Change the error handler. * <p> * Note that errors of class {@link ParseException}can be promoted using * the {@link ParseException#promote}method. See ARP documentation for * {@link org.xml.sax.ErrorHandler}for the details of error promotion. * * @param errHandler * The new error handler. * @return The old error handler. */ public RDFErrorHandler setErrorHandler(RDFErrorHandler errHandler) { RDFErrorHandler old = this.errorHandler; this.errorHandler = errHandler; if (handler != null) { handler.setErrorHandler(errHandler); } return old; }
/** * Change the error handler. * <p> * Note that errors of class {@link ParseException}can be promoted using * the {@link ParseException#promote}method. See ARP documentation for * {@link org.xml.sax.ErrorHandler}for the details of error promotion. * * @param errHandler * The new error handler. * @return The old error handler. */ public RDFErrorHandler setErrorHandler(RDFErrorHandler errHandler) { RDFErrorHandler old = this.errorHandler; this.errorHandler = errHandler; if (handler != null) { handler.setErrorHandler(errHandler); } return old; }
/** * Change the error handler. * <p> * Note that errors of class {@link ParseException}can be promoted using * the {@link ParseException#promote}method. See ARP documentation for * {@link org.xml.sax.ErrorHandler}for the details of error promotion. * * @param errHandler * The new error handler. * @return The old error handler. */ @Override public RDFErrorHandler setErrorHandler(RDFErrorHandler errHandler) { RDFErrorHandler old = this.errorHandler; this.errorHandler = errHandler; JenaHandler h = handler; if (h != null) { h.setErrorHandler(errHandler); } return old; }
/** * Change the error handler. * <p> * Note that errors of class {@link ParseException}can be promoted using * the {@link ParseException#promote}method. See ARP documentation for * {@link org.xml.sax.ErrorHandler}for the details of error promotion. * * @param errHandler * The new error handler. * @return The old error handler. */ @Override public RDFErrorHandler setErrorHandler(RDFErrorHandler errHandler) { RDFErrorHandler old = this.errorHandler; this.errorHandler = errHandler; JenaHandler h = handler; if (h != null) { h.setErrorHandler(errHandler); } return old; }