Example usage for javax.xml.stream Location getCharacterOffset

List of usage examples for javax.xml.stream Location getCharacterOffset

Introduction

In this page you can find the example usage for javax.xml.stream Location getCharacterOffset.

Prototype

int getCharacterOffset();

Source Link

Document

Return the byte or character offset into the input source this location is pointing to.

Usage

From source file:org.osaf.cosmo.model.text.BaseXhtmlFormat.java

protected void handleException(String message, Location location) throws ParseException {
    int offset = location != null ? location.getCharacterOffset() : -1;
    throw new ParseException(message, offset);
}