SMILA (incubation) API documentation

org.eclipse.smila.utils.xml.stax
Class XmlSnippetSplitter

java.lang.Object
  extended by 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.


Constructor Summary
XmlSnippetSplitter(XmlSnippetHandler snippetHandlet, MarkerTag begin, MarkerTag end)
          Conversion Constructor.
 
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
 

Constructor Detail

XmlSnippetSplitter

public XmlSnippetSplitter(XmlSnippetHandler snippetHandlet,
                          MarkerTag begin,
                          MarkerTag end)
Conversion Constructor.

Parameters:
snippetHandlet - the XmlSnippetHandler to handle splitted xml snippets
begin - the MarkerTag that describes the begin of a snippet
end - the MarkerTag that describes the end of a snippet
Method Detail

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

SMILA (incubation) API documentation