JDOMParseException.getLineNumber
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.jdom2.input.JDOMParseException.getLineNumber(Showing top 3 results out of 315)

origin: OvercastNetwork/ProjectAres

public static InvalidXMLException fromJDOM(JDOMParseException e, String documentPath) {
  return new InvalidXMLException(e.getMessage(), null, e.getPartialDocument(), documentPath, e.getLineNumber(), e.getLineNumber(), e.getColumnNumber(), e);
}
origin: rometools/rome

/**
 * 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() {
  if (getCause() instanceof JDOMParseException) {
    return ((JDOMParseException) getCause()).getLineNumber();
  } else {
    return -1;
  }
}
origin: com.rometools/rome

/**
 * 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() {
  if (getCause() instanceof JDOMParseException) {
    return ((JDOMParseException) getCause()).getLineNumber();
  } else {
    return -1;
  }
}
org.jdom2.inputJDOMParseExceptiongetLineNumber

Javadoc

Returns the line number of the end of the text where the parse error occurred.

The first line in the document is line 1.

Popular methods of JDOMParseException

  • <init>
    This will create a parse Exception with the given message and the partial document and wrap theExcep
  • getCause
  • getColumnNumber
    Returns the column number of the end of the text where the parse error occurred. The first column i
  • getMessage
  • getPartialDocument
    Returns the partial document that was successfully built before the error occurred.

Popular classes and methods

  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java virtua
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Pattern (java.util.regex)
    Emulation of the Pattern class, uses RegExp as internal implementation.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)