@Converter(generateBulkLoader=true) public final class ResourceConverter extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
toByteArray(org.apache.camel.spi.Resource resource,
org.apache.camel.CamelContext camelContext) |
static InputStream |
toInputStream(org.apache.camel.spi.Resource resource) |
static Reader |
toReader(org.apache.camel.spi.Resource resource) |
static org.apache.camel.spi.Resource |
toResource(String uri,
org.apache.camel.CamelContext camelContext) |
static String |
toString(org.apache.camel.spi.Resource resource,
org.apache.camel.CamelContext camelContext) |
@Converter(order=1) public static InputStream toInputStream(org.apache.camel.spi.Resource resource) throws IOException
IOException@Converter(order=2) public static Reader toReader(org.apache.camel.spi.Resource resource) throws Exception
Exception@Converter(order=3)
public static byte[] toByteArray(org.apache.camel.spi.Resource resource,
org.apache.camel.CamelContext camelContext)
throws IOException
IOException@Converter(order=4) public static String toString(org.apache.camel.spi.Resource resource, org.apache.camel.CamelContext camelContext) throws IOException
IOException@Converter(order=5) public static org.apache.camel.spi.Resource toResource(String uri, org.apache.camel.CamelContext camelContext) throws IOException
IOExceptionApache Camel