public class SimpleTagExtractor
extends java.lang.Object
| Constructor and Description |
|---|
SimpleTagExtractor(boolean removeTags)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getTags(java.lang.String tagName,
java.io.InputStream inputStream)
Reads all tags with the given name from the given XML stream.
|
public SimpleTagExtractor(boolean removeTags)
removeTags - true to return the contents of the only, without the surrounding tagspublic java.util.List<java.lang.String> getTags(java.lang.String tagName,
java.io.InputStream inputStream)
throws javax.xml.stream.XMLStreamException
tagName - the name of the taginputStream - contains the XML documentjavax.xml.stream.XMLStreamException - if the stream did not contain a valid XML document