Java Code Examples for javax.xml.stream.Location#toString()
The following examples show how to use
javax.xml.stream.Location#toString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FreyaXmlException.java From gs-xsd2bean with Apache License 2.0 | 4 votes |
public FreyaXmlException(String message, Location location, String diagnosticMessage) { super(message+(location == null ? "" :" at location: "+location.toString())+(diagnosticMessage == null ? "" : " "+diagnosticMessage)); this.location = location; }
Example 2
Source File: WstxValidationException.java From woodstox with Apache License 2.0 | 4 votes |
protected String getLocationDesc() { Location loc = getLocation(); return (loc == null) ? null : loc.toString(); }
Example 3
Source File: WstxException.java From woodstox with Apache License 2.0 | 4 votes |
protected String getLocationDesc() { Location loc = getLocation(); return (loc == null) ? null : loc.toString(); }
Example 4
Source File: StaxXmlPullParser.java From Smack with Apache License 2.0 | 4 votes |
@Override public String getPositionDescription() { Location location = xmlStreamReader.getLocation(); return location.toString(); }