public JsonLocation getCurrentLocation() { return _extractLocation(_xmlReader.getLocationInfo().getCurrentLocation()); } public JsonLocation getTokenLocation() {
public JsonLocation getTokenLocation() { return _extractLocation(_xmlReader.getLocationInfo().getStartLocation()); }
final LocationInfo info = xmlStreamReader.getLocationInfo(); tagInfo.add(parentTag); tagInfo.add((int) info.getStartingCharOffset(), (int) info.getEndingCharOffset()); tagInfo.add(-1, -1);//these 2 will be populated when we get to the close tag thisTag = tagCounter++; parentChangeOffsets.add((int) info.getStartingCharOffset()); parentChangeIds.add(thisTag); break; tagInfo.set(5 * thisTag + 3, (int) info.getStartingCharOffset()); tagInfo.set(5 * thisTag + 4, (int) info.getEndingCharOffset()); thisTag = getParentTag(thisTag); parentChangeOffsets.add((int) info.getEndingCharOffset()); parentChangeIds.add(thisTag); break;
elementEnd = xmlStreamReader.getLocationInfo().getEndingByteOffset(); final long end = xmlStreamReader.getLocationInfo().getEndingByteOffset();
final LocationInfo info = xmlStreamReader.getLocationInfo(); tagInfo.add(parentTag); tagInfo.add((int) info.getStartingCharOffset(), (int) info.getEndingCharOffset()); tagInfo.add(-1, -1);//these 2 will be populated when we get to the close tag thisTag = tagCounter++; parentChangeOffsets.add((int) info.getStartingCharOffset()); parentChangeIds.add(thisTag); break; tagInfo.set(5 * thisTag + 3, (int) info.getStartingCharOffset()); tagInfo.set(5 * thisTag + 4, (int) info.getEndingCharOffset()); thisTag = getParentTag(thisTag); parentChangeOffsets.add((int) info.getEndingCharOffset()); parentChangeIds.add(thisTag); break;
public JsonLocation getCurrentLocation() { return _extractLocation(_xmlReader.getLocationInfo().getCurrentLocation()); } public JsonLocation getTokenLocation() {
public JsonLocation getTokenLocation() { return _extractLocation(_xmlReader.getLocationInfo().getStartLocation()); }
public JsonLocation getCurrentLocation() { return _extractLocation(_xmlReader.getLocationInfo().getCurrentLocation()); }
public JsonLocation getTokenLocation() { return _extractLocation(_xmlReader.getLocationInfo().getStartLocation()); }
/** * Method for accessing the currently pointed-to location * within input stream. May be useful for indicating error * location, for example. */ public Location getStreamLocation() { // Let's try to get actual exact location via Stax2 first: LocationInfo li = _streamReader.getLocationInfo(); if (li != null) { Location loc = li.getCurrentLocation(); if (loc != null) { return loc; } } // If not, fall back to regular method return _streamReader.getLocation(); } }
/** * Method for accessing starting location of the currently * pointed-to event, within input stream. */ public Location getEventLocation() { // Let's try to get actual exact location via Stax2 first: LocationInfo li = _streamReader.getLocationInfo(); if (li != null) { Location loc = li.getStartLocation(); if (loc != null) { return loc; } } // If not, fall back to regular method return _streamReader.getLocation(); }
/** * Method for accessing the currently pointed-to location * within input stream. May be useful for indicating error * location, for example. */ public Location getStreamLocation() { // Let's try to get actual exact location via Stax2 first: LocationInfo li = _streamReader.getLocationInfo(); if (li != null) { Location loc = li.getCurrentLocation(); if (loc != null) { return loc; } } // If not, fall back to regular method return _streamReader.getLocation(); } }
/** * Method for accessing starting location of the currently * pointed-to event, within input stream. */ public Location getEventLocation() { // Let's try to get actual exact location via Stax2 first: LocationInfo li = _streamReader.getLocationInfo(); if (li != null) { Location loc = li.getStartLocation(); if (loc != null) { return loc; } } // If not, fall back to regular method return _streamReader.getLocation(); }