Package org.apache.camel.util.xml
Class StreamSourceConverter
- java.lang.Object
-
- org.apache.camel.util.xml.StreamSourceConverter
-
@Converter(generateBulkLoader=true) public final class StreamSourceConverter extends Object
A set ofConverter
methods for wrapping stream-based messages in aStreamCache
implementation to ensure message re-readability (eg multicasting, retrying)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Serializable
convertToSerializable(org.apache.camel.StreamCache cache, org.apache.camel.Exchange exchange)
static org.apache.camel.StreamCache
convertToStreamCache(SAXSource source, org.apache.camel.Exchange exchange)
static org.apache.camel.StreamCache
convertToStreamCache(StreamSource source, org.apache.camel.Exchange exchange)
static org.apache.camel.StreamCache
convertToStreamCache(BytesSource source)
-
-
-
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
-
-