Class DataSonnetTypeConverters
java.lang.Object
nl.axians.camel.datasonnet.springboot.DataSonnetTypeConverters
- All Implemented Interfaces:
org.apache.camel.TypeConverters
Type converters for DataSonnet.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.datasonnet.document.DefaultDocument<?>toDefaultDocument(InputStream theContent, org.apache.camel.Exchange theExchange) static com.datasonnet.document.DefaultDocument<?>toDefaultDocument(String theContent, org.apache.camel.Exchange theExchange) static InputStreamtoInputStream(com.datasonnet.document.DefaultDocument<String> theDocument) Convert aDefaultDocumentto an InputStream.static StringConvert aDefaultDocumentto a String.
-
Constructor Details
-
DataSonnetTypeConverters
public DataSonnetTypeConverters()
-
-
Method Details
-
toString
@Converter public static String toString(com.datasonnet.document.DefaultDocument<String> theDocument) Convert aDefaultDocumentto a String.- Parameters:
theDocument- The theDocument to convert.- Returns:
- The content of the theDocument as a String.
-
toInputStream
@Converter public static InputStream toInputStream(com.datasonnet.document.DefaultDocument<String> theDocument) Convert aDefaultDocumentto an InputStream.- Parameters:
theDocument- The theDocument to convert.- Returns:
- The content of the theDocument as an InputStream.
-
toDefaultDocument
@Converter public static com.datasonnet.document.DefaultDocument<?> toDefaultDocument(String theContent, org.apache.camel.Exchange theExchange) -
toDefaultDocument
@Converter public static com.datasonnet.document.DefaultDocument<?> toDefaultDocument(InputStream theContent, org.apache.camel.Exchange theExchange) throws IOException - Throws:
IOException
-