@Converter public final class XmlJsonConverters extends Object
Modifier and Type | Method and Description |
---|---|
static InputStream |
fromJSONtoInputStream(net.sf.json.JSON json,
org.apache.camel.Exchange exchange)
Converts from an existing JSON object circulating as such to an
InputStream, by dumping it to a String first and then using camel-core's
IOConverter.toInputStream(String, Exchange) |
@Converter public static InputStream fromJSONtoInputStream(net.sf.json.JSON json, org.apache.camel.Exchange exchange) throws IOException
IOConverter.toInputStream(String, Exchange)
IOException
Apache Camel