Package org.vast.xml
Class XMLStreamReaderWithLocation
java.lang.Object
org.vast.xml.DelegatingXMLStreamReader
org.vast.xml.XMLStreamReaderWithLocation
- All Implemented Interfaces:
XMLStreamConstants
,XMLStreamReader
This wrapper allows specifying the URI of the document that the stream
is read from.
This can be used for error localization as well as for relative link
resolution.
- Since:
- May 18, 2017
-
Field Summary
FieldsFields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
XMLStreamReaderWithLocation
(XMLStreamReader reader, URI baseURI) -
Method Summary
Methods inherited from class org.vast.xml.DelegatingXMLStreamReader
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, next, nextTag, require, standaloneSet
-
Field Details
-
baseURI
-
-
Constructor Details
-
XMLStreamReaderWithLocation
-
-
Method Details
-
getLocation
- Specified by:
getLocation
in interfaceXMLStreamReader
- Overrides:
getLocation
in classDelegatingXMLStreamReader
-