Class ResourceConverter

java.lang.Object
org.apache.camel.converter.ResourceConverter

@Converter(generateBulkLoader=true) public final class ResourceConverter extends Object
  • Method Details

    • toInputStream

      @Converter(order=1) public static InputStream toInputStream(org.apache.camel.spi.Resource resource) throws IOException
      Throws:
      IOException
    • toReader

      @Converter(order=2) public static Reader toReader(org.apache.camel.spi.Resource resource) throws Exception
      Throws:
      Exception
    • toByteArray

      @Converter(order=3) public static byte[] toByteArray(org.apache.camel.spi.Resource resource, org.apache.camel.CamelContext camelContext) throws IOException
      Throws:
      IOException
    • toString

      @Converter(order=4) public static String toString(org.apache.camel.spi.Resource resource, org.apache.camel.CamelContext camelContext) throws IOException
      Throws:
      IOException
    • toResource

      @Converter(order=5) public static org.apache.camel.spi.Resource toResource(String uri, org.apache.camel.CamelContext camelContext)