Package org.apache.camel.component.exec
Class ExecResultConverter
- java.lang.Object
-
- org.apache.camel.component.exec.ExecResultConverter
-
@Converter(generateLoader=true) public final class ExecResultConverter extends Object
Default converters forExecResult. For details how to extend the converters check out the Camel docs for type converters.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]convertToByteArray(ExecResult result, org.apache.camel.Exchange exchange)static DocumentconvertToDocument(ExecResult result, org.apache.camel.Exchange exchange)static InputStreamconvertToInputStream(ExecResult result)static StringconvertToString(ExecResult result, org.apache.camel.Exchange exchange)
-
-
-
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:
FileNotFoundExceptionIOException
-
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
-
-