@Override public void startRDF() throws RDFHandlerException { checkInterrupted(); super.startRDF(); }
@Override public void handleStatement(Statement st) throws RDFHandlerException { checkInterrupted(); super.handleStatement(st); }
/** * Reports a fatal error to the registered ParseErrorListener, if any, and * throws a <tt>ParseException</tt> afterwards. This method simply calls * {@link #reportFatalError(String,long,long)} supplying <tt>-1</tt> for the * line- and column number. */ protected void reportFatalError(String msg) throws RDFParseException { RDFParserHelper.reportFatalError(msg, getParseErrorListener()); }
@Override public void setValueFactory(ValueFactory valueFactory) { super.setValueFactory(valueFactory); this.valueFactory = valueFactory; }
/** * Creates a {@link Literal} object with the supplied parameters. */ protected Literal createLiteral(String label, String lang, IRI datatype) throws RDFParseException { return RDFParserHelper.createLiteral(label, lang, datatype, getParserConfig(), getParseErrorListener(), valueFactory); }
@Override public void handleNamespace(String prefix, String uri) throws RDFHandlerException { checkInterrupted(); super.handleNamespace(prefix, uri); }
@Override public void endRDF() throws RDFHandlerException { synchronized (bufferLock) { processBuffer(); } super.endRDF(); } }
@Override public void handleComment(String comment) throws RDFHandlerException { checkInterrupted(); super.handleComment(comment); }
@Override public void endRDF() throws RDFHandlerException { super.endRDF(); ended = true; }
@Override public void startRDF() throws RDFHandlerException { super.startRDF(); started = true; }
@Override public void endRDF() throws RDFHandlerException { checkInterrupted(); if (ended.compareAndSet(false, true)) { super.endRDF(); } }
@Override public RDFParser setParserConfig(ParserConfig config) { this.parserConfig = config; initializeNamespaceTableFromConfiguration(); return this; }
/** * Reports a warning to the registered ParseErrorListener, if any. This * method simply calls {@link #reportWarning(String,long,long)} supplying * <tt>-1</tt> for the line- and column number. */ protected void reportWarning(String msg) { reportWarning(msg, -1, -1); }
/** * Reports a fatal error to the registered ParseErrorListener, if any, and * throws a <tt>ParseException</tt> afterwards. This method simply calls * {@link #reportFatalError(String, long, long, ParseErrorListener)} * supplying <tt>-1</tt> for the line- and column number. * * @since 2.7.1 */ public static void reportFatalError(String msg, ParseErrorListener errListener) throws RDFParseException { reportFatalError(msg, -1, -1, errListener); }
@Override public Iterator<Integer> iterator() { return new CodePointIterator(charSequence); }
@Override public void setValueFactory(ValueFactory valueFactory) { super.setValueFactory(valueFactory); this.valueFactory = valueFactory; }
/** * Creates a {@link Literal} object with the supplied parameters, using the * lineNo and columnNo to enhance error messages or exceptions that may be * generated during the creation of the literal. * * @since 2.7.4 * @see org.openrdf.rio.helpers.RDFParserHelper#createLiteral(String, String, * IRI, ParserConfig, ParseErrorListener, ValueFactory, long, long) */ protected Literal createLiteral(String label, String lang, IRI datatype, long lineNo, long columnNo) throws RDFParseException { return RDFParserHelper.createLiteral(label, lang, datatype, getParserConfig(), getParseErrorListener(), valueFactory, lineNo, columnNo); }
/** * Reports a fatal error with associated line- and column number to the * registered ParseErrorListener, if any, and throws a * <tt>ParseException</tt> afterwards. */ protected void reportFatalError(String msg, long lineNo, long columnNo) throws RDFParseException { RDFParserHelper.reportFatalError(msg, lineNo, columnNo, getParseErrorListener()); }
/** * Reports a fatal error with associated line- and column number to the * registered ParseErrorListener, if any, and throws a * <tt>ParseException</tt> wrapped the supplied exception afterwards. An * exception is made for the case where the supplied exception is a * {@link RDFParseException}; in that case the supplied exception is not * wrapped in another ParseException and the error message is not reported to * the ParseErrorListener, assuming that it has already been reported when * the original ParseException was thrown. */ protected void reportFatalError(Exception e, long lineNo, long columnNo) throws RDFParseException { RDFParserHelper.reportFatalError(e, lineNo, columnNo, getParseErrorListener()); }
/** * Reports a fatal error to the registered ParseErrorListener, if any, and * throws a <tt>ParseException</tt> afterwards. An exception is made for the * case where the supplied exception is a {@link RDFParseException}; in that * case the supplied exception is not wrapped in another ParseException and * the error message is not reported to the ParseErrorListener, assuming that * it has already been reported when the original ParseException was thrown. * <p> * This method simply calls {@link #reportFatalError(Exception,long,long)} * supplying <tt>-1</tt> for the line- and column number. */ protected void reportFatalError(Exception e) throws RDFParseException { RDFParserHelper.reportFatalError(e, getParseErrorListener()); }