Class XmlSource
- java.lang.Object
-
- io.wcm.caravan.io.jsontransform.source.XmlSource
-
- All Implemented Interfaces:
Source
,Closeable
,AutoCloseable
,Iterator<JsonElement>
@ProviderType public final class XmlSource extends Object implements Source
Parses the SOAP response and transforms into JSON elements.
-
-
Constructor Summary
Constructors Constructor Description XmlSource(InputStream input, String... roots)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
hasNext()
boolean
isUncapitalizeProperties()
JsonElement
next()
void
setUncapitalizeProperties(boolean uncapitalizeProperties)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Constructor Detail
-
XmlSource
public XmlSource(InputStream input, String... roots) throws XMLStreamException
- Parameters:
input
- The input streamroots
- Possible XML roots- Throws:
XMLStreamException
- XML read error
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<JsonElement>
-
next
public JsonElement next()
- Specified by:
next
in interfaceIterator<JsonElement>
-
isUncapitalizeProperties
public boolean isUncapitalizeProperties()
- Returns:
- true if all JSON property names should be converted to start with a lower-case letter
-
setUncapitalizeProperties
public void setUncapitalizeProperties(boolean uncapitalizeProperties)
- Parameters:
uncapitalizeProperties
- true if all JSON property names should be converted to start with a lower-case letter
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-