Search in sources :

Example 1 with RDFErrorHandler

use of org.apache.jena.rdf.model.RDFErrorHandler in project jena by apache.

the class JenaWriterBase method setErrorHandler.

@Override
public RDFErrorHandler setErrorHandler(RDFErrorHandler errHandler) {
    RDFErrorHandler old = errorHandler;
    errorHandler = errHandler;
    return old;
}
Also used : RDFErrorHandler(org.apache.jena.rdf.model.RDFErrorHandler)

Example 2 with RDFErrorHandler

use of org.apache.jena.rdf.model.RDFErrorHandler in project jena by apache.

the class RDFWriterRIOT method setErrorHandler.

@Override
public RDFErrorHandler setErrorHandler(RDFErrorHandler errHandler) {
    RDFErrorHandler old = errorHandler;
    errorHandler = errHandler;
    return old;
}
Also used : RDFErrorHandler(org.apache.jena.rdf.model.RDFErrorHandler)

Example 3 with RDFErrorHandler

use of org.apache.jena.rdf.model.RDFErrorHandler in project jena by apache.

the class SAX2Model method setErrorHandler.

/**
     * 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;
}
Also used : RDFErrorHandler(org.apache.jena.rdf.model.RDFErrorHandler)

Example 4 with RDFErrorHandler

use of org.apache.jena.rdf.model.RDFErrorHandler in project jena by apache.

the class JenaReader method setErrorHandler.

/**
     * 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;
}
Also used : RDFErrorHandler(org.apache.jena.rdf.model.RDFErrorHandler)

Example 5 with RDFErrorHandler

use of org.apache.jena.rdf.model.RDFErrorHandler in project jena by apache.

the class RDFReaderRIOT method setErrorHandler.

@Override
public RDFErrorHandler setErrorHandler(RDFErrorHandler errHandler) {
    RDFErrorHandler old = errorHandler;
    errorHandler = errHandler;
    return old;
}
Also used : RDFErrorHandler(org.apache.jena.rdf.model.RDFErrorHandler)

Aggregations

RDFErrorHandler (org.apache.jena.rdf.model.RDFErrorHandler)5