Package org.apache.camel.converter
Class ResourceConverter
java.lang.Object
org.apache.camel.converter.ResourceConverter
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]toByteArray(org.apache.camel.spi.Resource resource, org.apache.camel.CamelContext camelContext) static InputStreamtoInputStream(org.apache.camel.spi.Resource resource) static ReadertoReader(org.apache.camel.spi.Resource resource) static org.apache.camel.spi.ResourcetoResource(String uri, org.apache.camel.CamelContext camelContext) static StringtoString(org.apache.camel.spi.Resource resource, org.apache.camel.CamelContext camelContext)
-
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) throws IOException - Throws:
IOException
-