org.apache.camel.component.file
Class GenericFileConverter
java.lang.Object
org.apache.camel.component.file.GenericFileConverter
@Converter
public final class GenericFileConverter
- extends Object
A set of converter methods for working with generic file types
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
convertTo
@FallbackConverter
public static Object convertTo(Class<?> type,
Exchange exchange,
Object value,
TypeConverterRegistry registry)
throws IOException,
NoTypeConversionAvailableException
- Throws:
IOException
NoTypeConversionAvailableException
genericFileToInputStream
@Converter
public static InputStream genericFileToInputStream(GenericFile<?> file,
Exchange exchange)
throws IOException,
NoTypeConversionAvailableException
- Throws:
IOException
NoTypeConversionAvailableException
genericFileToString
@Converter
public static String genericFileToString(GenericFile<?> file,
Exchange exchange)
throws IOException,
NoTypeConversionAvailableException
- Throws:
IOException
NoTypeConversionAvailableException
genericFileToSerializable
@Converter
public static Serializable genericFileToSerializable(GenericFile<?> file,
Exchange exchange)
throws IOException,
NoTypeConversionAvailableException
- Throws:
IOException
NoTypeConversionAvailableException
Apache CAMEL