@Converter public final class GenericFileConverter extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
convertTo(Class<?> type,
Exchange exchange,
Object value,
TypeConverterRegistry registry) |
static InputStream |
genericFileToInputStream(GenericFile<?> file,
Exchange exchange) |
static Serializable |
genericFileToSerializable(GenericFile<?> file,
Exchange exchange) |
static String |
genericFileToString(GenericFile<?> file,
Exchange exchange) |
@FallbackConverter public static Object convertTo(Class<?> type, Exchange exchange, Object value, TypeConverterRegistry registry) throws IOException, NoTypeConversionAvailableException
@Converter public static InputStream genericFileToInputStream(GenericFile<?> file, Exchange exchange) throws IOException, NoTypeConversionAvailableException
@Converter public static String genericFileToString(GenericFile<?> file, Exchange exchange) throws IOException, NoTypeConversionAvailableException
@Converter public static Serializable genericFileToSerializable(GenericFile<?> file, Exchange exchange) throws IOException, NoTypeConversionAvailableException
Apache Camel