/** * Overrides {@link AbstractRDFParser#reportFatalError(Exception)}, adding line number information to the * error. */ @Override protected void reportFatalError(Exception e) throws RDFParseException { reportFatalError(e, lineNo, -1); }
/** * Overrides {@link AbstractRDFParser#reportFatalError(Exception)}, adding line number information to the * error. */ @Override protected void reportFatalError(Exception e) throws RDFParseException { reportFatalError(e, lineNo, -1); }
/** * Overrides {@link AbstractRDFParser#reportFatalError(String)}, adding line number information to the * error. */ @Override protected void reportFatalError(String msg) throws RDFParseException { reportFatalError(msg, lineNo, -1); }
/** * Overrides {@link AbstractRDFParser#reportFatalError(String)}, adding line number information to the * error. */ @Override protected void reportFatalError(String msg) throws RDFParseException { reportFatalError(msg, lineNo, -1); }
/** * Verifies that there is only whitespace or comments until the end of the line. */ protected int assertLineTerminates(int c) throws IOException, RDFParseException { c = readCodePoint(); c = skipWhitespace(c); if (c == '#') { // c = skipToEndOfLine(c); } else { if (c != -1 && c != '\r' && c != '\n') { reportFatalError("Content after '.' is not allowed"); } } return c; }
/** * Verifies that there is only whitespace or comments until the end of the line. */ protected int assertLineTerminates(int c) throws IOException, RDFParseException { c = readCodePoint(); c = skipWhitespace(c); if (c == '#') { // c = skipToEndOfLine(c); } else { if (c != -1 && c != '\r' && c != '\n') { reportFatalError("Content after '.' is not allowed"); } } return c; }