@Converter(generateBulkLoader=true) public final class StreamCacheConverter extends Object
Converter
methods for wrapping stream-based messages in a StreamCache
implementation to
ensure message re-readability (eg multicasting, retrying)Modifier and Type | Method and Description |
---|---|
static byte[] |
convertToByteArray(org.apache.camel.StreamCache cache,
org.apache.camel.Exchange exchange) |
static ByteBuffer |
convertToByteBuffer(org.apache.camel.StreamCache cache,
org.apache.camel.Exchange exchange) |
static org.apache.camel.StreamCache |
convertToStreamCache(ByteArrayInputStream stream,
org.apache.camel.Exchange exchange) |
static org.apache.camel.StreamCache |
convertToStreamCache(CachedOutputStream cos,
org.apache.camel.Exchange exchange) |
static org.apache.camel.StreamCache |
convertToStreamCache(InputStream stream,
org.apache.camel.Exchange exchange) |
static org.apache.camel.StreamCache |
convertToStreamCache(Reader reader,
org.apache.camel.Exchange exchange) |
@Converter(order=1) public static org.apache.camel.StreamCache convertToStreamCache(ByteArrayInputStream stream, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter(order=2) public static org.apache.camel.StreamCache convertToStreamCache(InputStream stream, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter(order=3) public static org.apache.camel.StreamCache convertToStreamCache(CachedOutputStream cos, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter(order=4) public static org.apache.camel.StreamCache convertToStreamCache(Reader reader, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter(order=5) public static byte[] convertToByteArray(org.apache.camel.StreamCache cache, org.apache.camel.Exchange exchange) throws IOException
IOException
@Converter(order=6) public static ByteBuffer convertToByteBuffer(org.apache.camel.StreamCache cache, org.apache.camel.Exchange exchange) throws IOException
IOException
Apache Camel