Class StreamSourceConverter


  • @Converter(generateBulkLoader=true)
    public final class StreamSourceConverter
    extends Object
    A set of Converter methods for wrapping stream-based messages in a StreamCache implementation to ensure message re-readability (eg multicasting, retrying)
    • Method Detail

      • convertToStreamCache

        @Converter(order=1)
        public static org.apache.camel.StreamCache convertToStreamCache​(BytesSource source)
      • convertToStreamCache

        @Converter(order=2)
        public static org.apache.camel.StreamCache convertToStreamCache​(StreamSource source,
                                                                        org.apache.camel.Exchange exchange)
                                                                 throws IOException
        Throws:
        IOException
      • convertToStreamCache

        @Converter(order=3)
        public static org.apache.camel.StreamCache convertToStreamCache​(SAXSource source,
                                                                        org.apache.camel.Exchange exchange)
      • convertToSerializable

        @Converter(order=4)
        public static Serializable convertToSerializable​(org.apache.camel.StreamCache cache,
                                                         org.apache.camel.Exchange exchange)
                                                  throws IOException
        Throws:
        IOException