/** * Calculates the STAX {@link Location}from the SAX {@link Locator} * registered with this handler. If no {@link Locator}was provided, then * this method will return <code>null</code>. */ public Location getCurrentLocation() { if (docLocator != null) { return new SAXLocation(docLocator); } else { return null; } }