org.apache.camel.converter.stream
Class StreamCacheConverter
java.lang.Object
org.apache.camel.converter.stream.StreamCacheConverter
@Converter
public class StreamCacheConverter
- extends Object
A set of Converter
methods for wrapping stream-based messages in a StreamCache
implementation to ensure message re-readability (eg multicasting, retrying)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamCacheConverter
public StreamCacheConverter()
convertToStreamCache
@Converter
public StreamCache convertToStreamCache(StreamSource source,
Exchange exchange)
throws IOException
- Throws:
IOException
convertToStreamCache
@Converter
public StreamCache convertToStreamCache(StringSource source)
convertToStreamCache
@Converter
public StreamCache convertToStreamCache(BytesSource source)
convertToStreamCache
@Converter
public StreamCache convertToStreamCache(SAXSource source,
Exchange exchange)
throws TransformerException
- Throws:
TransformerException
convertToStreamCache
@Converter
public StreamCache convertToStreamCache(InputStream stream,
Exchange exchange)
throws IOException
- Throws:
IOException
convertToStreamCache
@Converter
public StreamCache convertToStreamCache(Reader reader,
Exchange exchange)
throws IOException
- Throws:
IOException
convertToSerializable
@Converter
public Serializable convertToSerializable(StreamCache cache,
Exchange exchange)
throws IOException
- Throws:
IOException
convertToByteArray
@Converter
public byte[] convertToByteArray(StreamCache cache,
Exchange exchange)
throws IOException
- Throws:
IOException
Apache CAMEL