|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.utils.xml.stax.SimpleTagExtractor
public class SimpleTagExtractor
Extracts the contents of specific tags from an XML stream.
| Constructor Summary | |
|---|---|
SimpleTagExtractor(boolean removeTags)
Creates a new instance. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleTagExtractor(boolean removeTags)
removeTags - true to return the contents of the only, without the surrounding tags| Method Detail |
|---|
public 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 document
javax.xml.stream.XMLStreamException - if the stream did not contain a valid XML document
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||