org.eclipse.smila.utils.xml.stax
Class XmlSnippetSplitter
java.lang.Object
org.eclipse.smila.utils.xml.stax.XmlSnippetSplitter
public class XmlSnippetSplitter
- extends java.lang.Object
StAX based XML splitter, that parses a XML stream and splits it into multiple XML snippets described by begin and end
tags.
|
Method Summary |
void |
read(java.io.InputStream inputStream)
Reads in the given InputStream and parses it for XML snippets describe by the begin and end marker tags. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlSnippetSplitter
public XmlSnippetSplitter(XmlSnippetHandler snippetHandlet,
javax.xml.namespace.QName begin,
javax.xml.namespace.QName end)
- Conversion Constructor.
- Parameters:
snippetHandlet - the XmlSnippetHandler to handle splitted xml snippetsbegin - the MarkerTag that describes the begin of a snippetend - the MarkerTag that describes the end of a snippet
read
public void read(java.io.InputStream inputStream)
throws javax.xml.stream.XMLStreamException
- Reads in the given InputStream and parses it for XML snippets describe by the begin and end marker tags. Closes the
inputStream when finished.
- Parameters:
inputStream - the InputStream to read from
- Throws:
javax.xml.stream.XMLStreamException - the StAX Exception