@Converter 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(StreamCache cache,
Exchange exchange) |
static ByteBuffer |
convertToByteBuffer(StreamCache cache,
Exchange exchange) |
static Serializable |
convertToSerializable(StreamCache cache,
Exchange exchange) |
static StreamCache |
convertToStreamCache(ByteArrayInputStream stream,
Exchange exchange) |
static StreamCache |
convertToStreamCache(BytesSource source) |
static StreamCache |
convertToStreamCache(CachedOutputStream cos,
Exchange exchange) |
static StreamCache |
convertToStreamCache(InputStream stream,
Exchange exchange) |
static StreamCache |
convertToStreamCache(Reader reader,
Exchange exchange) |
static StreamCache |
convertToStreamCache(SAXSource source,
Exchange exchange) |
static StreamCache |
convertToStreamCache(StreamSource source,
Exchange exchange) |
static StreamCache |
convertToStreamCache(StringSource source) |
@Converter public static StreamCache convertToStreamCache(StreamSource source, Exchange exchange) throws IOException
IOException
@Converter public static StreamCache convertToStreamCache(StringSource source)
@Converter public static StreamCache convertToStreamCache(BytesSource source)
@Converter public static StreamCache convertToStreamCache(SAXSource source, Exchange exchange) throws TransformerException
TransformerException
@Converter public static StreamCache convertToStreamCache(ByteArrayInputStream stream, Exchange exchange) throws IOException
IOException
@Converter public static StreamCache convertToStreamCache(InputStream stream, Exchange exchange) throws IOException
IOException
@Converter public static StreamCache convertToStreamCache(CachedOutputStream cos, Exchange exchange) throws IOException
IOException
@Converter public static StreamCache convertToStreamCache(Reader reader, Exchange exchange) throws IOException
IOException
@Converter public static Serializable convertToSerializable(StreamCache cache, Exchange exchange) throws IOException
IOException
@Converter public static byte[] convertToByteArray(StreamCache cache, Exchange exchange) throws IOException
IOException
@Converter public static ByteBuffer convertToByteBuffer(StreamCache cache, Exchange exchange) throws IOException
IOException
Apache Camel