下面列出了javax.xml.stream.Location#toString ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
public FreyaXmlException(String message, Location location, String diagnosticMessage)
{
super(message+(location == null ? "" :" at location: "+location.toString())+(diagnosticMessage == null ? "" : " "+diagnosticMessage));
this.location = location;
}
protected String getLocationDesc()
{
Location loc = getLocation();
return (loc == null) ? null : loc.toString();
}
protected String getLocationDesc()
{
Location loc = getLocation();
return (loc == null) ? null : loc.toString();
}
@Override
public String getPositionDescription() {
Location location = xmlStreamReader.getLocation();
return location.toString();
}