Package com.independentsoft.office
Class InternalXMLStreamReader
java.lang.Object
com.independentsoft.office.InternalXMLStreamReader
The Class InternalXMLStreamReader.
-
Constructor Summary
ConstructorsConstructorDescriptionInternalXMLStreamReader(InputStream inputStream)Instantiates a new internal xml stream reader.InternalXMLStreamReader(InputStream inputStream, Relationship relationship)Instantiates a new internal xml stream reader. -
Method Summary
Modifier and TypeMethodDescriptionget()Gets the.Gets the relationship.Reads the inner XML (the markup between the start and end tags) of the element the reader is currently positioned on, and advances the reader to the node after the element's end tag.
-
Constructor Details
-
InternalXMLStreamReader
Instantiates a new internal xml stream reader.- Parameters:
inputStream- the input stream- Throws:
XMLStreamException- the xML stream exception
-
InternalXMLStreamReader
public InternalXMLStreamReader(InputStream inputStream, Relationship relationship) throws XMLStreamExceptionInstantiates a new internal xml stream reader.- Parameters:
inputStream- the input streamrelationship- the relationship- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
get
Gets the.- Returns:
- the xML stream reader
-
getRelationship
Gets the relationship.- Returns:
- the relationship
-
readInnerXml
Reads the inner XML (the markup between the start and end tags) of the element the reader is currently positioned on, and advances the reader to the node after the element's end tag. Mirrors System.Xml.XmlReader.ReadInnerXml: the element's own tags are not included, child element/attribute prefixes are preserved as written, and only namespaces declared on the captured elements themselves are emitted (ancestor namespace declarations are assumed to be present in the output document root).- Returns:
- the inner XML as a string (empty if there is no child content)
- Throws:
XMLStreamException- the XML stream exception
-