public class XmlInputStreamResource extends InputStreamResource implements XmlDataSource
InputStreamResource class to support XML file as a DataProvider to be used by
XmlDataProviderImpl.| Constructor and Description |
|---|
XmlInputStreamResource(InputStream stream,
Class<?> cls,
String type)
Constructor to accept input stream of XML file, and multiple declared types at multiple XPaths represented by the
XML data.
|
XmlInputStreamResource(InputStream stream,
Map<String,Class<?>> xpathMap,
String type)
Constructor to accept input stream of XML file, and multiple declared types at multiple XPaths represented by the
XML data.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Class<?>> |
getXpathMap()
Gets the map of
String representing XPath and the type represented by the node evaluated by the XPath. |
getCls, getInputStream, getType, setClsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCls, getInputStream, getType, setClspublic XmlInputStreamResource(InputStream stream, Class<?> cls, String type)
stream - The input stream of the resource.cls - User defined POJO to map with data filetype - Type of the streampublic XmlInputStreamResource(InputStream stream, Map<String,Class<?>> xpathMap, String type)
stream - The input stream of the resource.xpathMap - The map containing the XPath string and the type represented by the node evaluated using the XPath.public Map<String,Class<?>> getXpathMap()
String representing XPath and the type represented by the node evaluated by the XPath.getXpathMap in interface XmlDataSourceMap<String, Class<?>> map. Returns null if the instance was not initialized using
XmlFileSystemResource.XmlFileSystemResource(String, Map) or
XmlFileSystemResource.XmlFileSystemResource(String, Class) constructors.Copyright © 2016 PayPal Open Source. All rights reserved.