org.apache.camel.component.exec
Class ExecResultConverter

java.lang.Object
  extended by org.apache.camel.component.exec.ExecResultConverter

@Converter
public final class ExecResultConverter
extends Object

Default converters for ExecResult. For details how to extend the converters check out the Camel docs for type converters.


Method Summary
static byte[] convertToByteArray(ExecResult result, org.apache.camel.Exchange exchange)
           
static Document convertToDocument(ExecResult result, org.apache.camel.Exchange exchange)
           
static InputStream convertToInputStream(ExecResult result)
           
static String convertToString(ExecResult result, org.apache.camel.Exchange exchange)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertToInputStream

@Converter
public static InputStream convertToInputStream(ExecResult result)
                                        throws FileNotFoundException
Throws:
FileNotFoundException

convertToByteArray

@Converter
public static byte[] convertToByteArray(ExecResult result,
                                                  org.apache.camel.Exchange exchange)
                                 throws FileNotFoundException,
                                        IOException
Throws:
FileNotFoundException
IOException

convertToString

@Converter
public static String convertToString(ExecResult result,
                                               org.apache.camel.Exchange exchange)
                              throws FileNotFoundException
Throws:
FileNotFoundException

convertToDocument

@Converter
public static Document convertToDocument(ExecResult result,
                                                   org.apache.camel.Exchange exchange)
                                  throws FileNotFoundException
Throws:
FileNotFoundException


Apache Camel