/** * Returns the system identifier of the entity where the * parse error occurred. * * @return a string containing the system identifier, or * <code>null</code> if the information is not available. */ public String getSystemId() { return (getCause() instanceof SAXParseException)? ((SAXParseException)getCause()).getSystemId(): null; }
/** * Returns the column number of the end of the text where the * parse error occurred. * <p> * The first column in a line is position 1.</p> * * @return an integer representing the column number, or -1 * if the information is not available. */ public int getColumnNumber() { return (getCause() instanceof SAXParseException)? ((SAXParseException)getCause()).getColumnNumber(): -1; } }
/** * Returns the line number of the end of the text where the * parse error occurred. * <p> * The first line in the document is line 1.</p> * * @return an integer representing the line number, or -1 * if the information is not available. */ public int getLineNumber() { return (getCause() instanceof SAXParseException)? ((SAXParseException)getCause()).getLineNumber(): -1; }
/** * Returns the public identifier of the entity where the * parse error occurred. * * @return a string containing the public identifier, or * <code>null</code> if the information is not available. */ public String getPublicId() { return (getCause() instanceof SAXParseException)? ((SAXParseException)getCause()).getPublicId(): null; }