Class GenericFileConverter


  • @Converter(generateLoader=true)
    public final class GenericFileConverter
    extends Object
    A set of converter methods for working with generic file types
    • Method Detail

      • convertTo

        @Converter(fallback=true)
        public static Object convertTo​(Class<?> type,
                                       org.apache.camel.Exchange exchange,
                                       Object value,
                                       org.apache.camel.spi.TypeConverterRegistry registry)
                                throws IOException,
                                       org.apache.camel.NoTypeConversionAvailableException
        Throws:
        IOException
        org.apache.camel.NoTypeConversionAvailableException
      • genericFileToString

        @Converter
        public static String genericFileToString​(GenericFile<?> file,
                                                 org.apache.camel.Exchange exchange)
                                          throws IOException,
                                                 org.apache.camel.NoTypeConversionAvailableException
        Throws:
        IOException
        org.apache.camel.NoTypeConversionAvailableException