Java Code Examples for javax.xml.stream.Location#getSystemId()
The following examples show how to use
javax.xml.stream.Location#getSystemId() .
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: LocationImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
LocationImpl(Location loc){ systemId = loc.getSystemId(); publicId = loc.getPublicId(); lineNo = loc.getLineNumber(); colNo = loc.getColumnNumber(); charOffset = loc.getCharacterOffset(); }
Example 2
Source File: StaxUtils.java From cxf with Apache License 2.0 | 5 votes |
private static boolean addLocation(Document doc, Node node, Location loc, boolean recordLoc) { if (recordLoc && loc != null && (loc.getColumnNumber() != 0 || loc.getLineNumber() != 0)) { try { final int charOffset = loc.getCharacterOffset(); final int colNum = loc.getColumnNumber(); final int linNum = loc.getLineNumber(); final String pubId = loc.getPublicId() == null ? doc.getDocumentURI() : loc.getPublicId(); final String sysId = loc.getSystemId() == null ? doc.getDocumentURI() : loc.getSystemId(); Location loc2 = new Location() { public int getCharacterOffset() { return charOffset; } public int getColumnNumber() { return colNum; } public int getLineNumber() { return linNum; } public String getPublicId() { return pubId; } public String getSystemId() { return sysId; } }; node.setUserData("location", loc2, LocationUserDataHandler.INSTANCE); } catch (Throwable ex) { //possibly not DOM level 3, won't be able to record this then return false; } } return recordLoc; }
Example 3
Source File: FailureLocation.java From cxf with Apache License 2.0 | 5 votes |
public FailureLocation(Location loc, String docURI) { this.location = loc; this.documentURI = docURI; if (documentURI == null) { documentURI = loc.getSystemId(); } }
Example 4
Source File: WstxSAXParser.java From woodstox with Apache License 2.0 | 5 votes |
@Override public String getSystemId() { if (mScanner != null) { Location loc = mScanner.getLocation(); return loc.getSystemId(); } return null; }
Example 5
Source File: LocationImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
LocationImpl(Location loc){ systemId = loc.getSystemId(); publicId = loc.getPublicId(); lineNo = loc.getLineNumber(); colNo = loc.getColumnNumber(); charOffset = loc.getCharacterOffset(); }
Example 6
Source File: LocationImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
LocationImpl(Location loc){ systemId = loc.getSystemId(); publicId = loc.getPublicId(); lineNo = loc.getLineNumber(); colNo = loc.getColumnNumber(); charOffset = loc.getCharacterOffset(); }
Example 7
Source File: LocationImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
LocationImpl(Location loc){ systemId = loc.getSystemId(); publicId = loc.getPublicId(); lineNo = loc.getLineNumber(); colNo = loc.getColumnNumber(); charOffset = loc.getCharacterOffset(); }
Example 8
Source File: LocationImpl.java From Bytecoder with Apache License 2.0 | 5 votes |
LocationImpl(Location loc){ systemId = loc.getSystemId(); publicId = loc.getPublicId(); lineNo = loc.getLineNumber(); colNo = loc.getColumnNumber(); charOffset = loc.getCharacterOffset(); }
Example 9
Source File: LocationImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
LocationImpl(Location loc){ systemId = loc.getSystemId(); publicId = loc.getPublicId(); lineNo = loc.getLineNumber(); colNo = loc.getColumnNumber(); charOffset = loc.getCharacterOffset(); }
Example 10
Source File: LocationImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
LocationImpl(Location loc){ systemId = loc.getSystemId(); publicId = loc.getPublicId(); lineNo = loc.getLineNumber(); colNo = loc.getColumnNumber(); charOffset = loc.getCharacterOffset(); }
Example 11
Source File: LocationImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
LocationImpl(Location loc){ systemId = loc.getSystemId(); publicId = loc.getPublicId(); lineNo = loc.getLineNumber(); colNo = loc.getColumnNumber(); charOffset = loc.getCharacterOffset(); }
Example 12
Source File: LocationImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
LocationImpl(Location loc){ systemId = loc.getSystemId(); publicId = loc.getPublicId(); lineNo = loc.getLineNumber(); colNo = loc.getColumnNumber(); charOffset = loc.getCharacterOffset(); }
Example 13
Source File: AbstractObjectImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
AbstractObjectImpl(XMLStreamReader xsr) { Location loc = xsr.getLocation(); this.lineNumber = loc.getLineNumber(); this.systemId = loc.getSystemId(); }
Example 14
Source File: AbstractObjectImpl.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
AbstractObjectImpl(XMLStreamReader xsr) { Location loc = xsr.getLocation(); this.lineNumber = loc.getLineNumber(); this.systemId = loc.getSystemId(); }
Example 15
Source File: AbstractObjectImpl.java From hottub with GNU General Public License v2.0 | 4 votes |
AbstractObjectImpl(XMLStreamReader xsr) { Location loc = xsr.getLocation(); this.lineNumber = loc.getLineNumber(); this.systemId = loc.getSystemId(); }
Example 16
Source File: AbstractObjectImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
AbstractObjectImpl(XMLStreamReader xsr) { Location loc = xsr.getLocation(); this.lineNumber = loc.getLineNumber(); this.systemId = loc.getSystemId(); }
Example 17
Source File: AbstractObjectImpl.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
AbstractObjectImpl(XMLStreamReader xsr) { Location loc = xsr.getLocation(); this.lineNumber = loc.getLineNumber(); this.systemId = loc.getSystemId(); }
Example 18
Source File: AbstractObjectImpl.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
AbstractObjectImpl(XMLStreamReader xsr) { Location loc = xsr.getLocation(); this.lineNumber = loc.getLineNumber(); this.systemId = loc.getSystemId(); }
Example 19
Source File: AbstractObjectImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
AbstractObjectImpl(XMLStreamReader xsr) { Location loc = xsr.getLocation(); this.lineNumber = loc.getLineNumber(); this.systemId = loc.getSystemId(); }
Example 20
Source File: AbstractObjectImpl.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
AbstractObjectImpl(XMLStreamReader xsr) { Location loc = xsr.getLocation(); this.lineNumber = loc.getLineNumber(); this.systemId = loc.getSystemId(); }