public class XmlFieldExtractor extends Object
Constructor and Description |
---|
XmlFieldExtractor()
Constructor.
|
public Map<String,String> extract(InputStream xml, String[] fields)
<xml><bar>BAR</bar></xml></code>
and
field "bar", this class return a map with key "bar" and value "BAR".xml
- Stream of XML to processfields
- List of fields to look for.Copyright © 2014. All Rights Reserved.