Package org.apache.camel.util.xml
Class StreamSourceConverter
java.lang.Object
org.apache.camel.util.xml.StreamSourceConverter
A set of
Converter
methods for wrapping stream-based messages in a StreamCache
implementation to
ensure message re-readability (eg multicasting, retrying)-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
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
-