org.apache.camel.component.file
Class GenericFileConverter

java.lang.Object
  extended by org.apache.camel.component.file.GenericFileConverter

@Converter
public final class GenericFileConverter
extends Object

A set of converter methods for working with generic file types


Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertTo

@FallbackConverter
public static Object convertTo(Class<?> type,
                                                 Exchange exchange,
                                                 Object value,
                                                 TypeConverterRegistry registry)

genericFileToInputStream

@Converter
public static InputStream genericFileToInputStream(GenericFile<?> file,
                                                             Exchange exchange)
                                            throws IOException
Throws:
IOException

genericFileToString

@Converter
public static String genericFileToString(GenericFile<?> file,
                                                   Exchange exchange)
                                  throws IOException
Throws:
IOException

genericFileToSerializable

@Converter
public static Serializable genericFileToSerializable(GenericFile<?> file,
                                                               Exchange exchange)
                                              throws IOException
Throws:
IOException


Apache CAMEL