org.apache.camel.dataformat.xmljson.converters
Class XmlJsonConverters
java.lang.Object
org.apache.camel.dataformat.xmljson.converters.XmlJsonConverters
@Converter
public final class XmlJsonConverters
- extends Object
Contains type converters to cater for Camel's unconditional conversion of the message body to an
InputStream prior to marshaling
Method Summary |
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) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fromJSONtoInputStream
@Converter
public static InputStream fromJSONtoInputStream(net.sf.json.JSON json,
org.apache.camel.Exchange exchange)
throws IOException
- 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)
- Throws:
IOException
Apache Camel