Class DataSonnetTypeConverters

java.lang.Object
nl.axians.camel.datasonnet.springboot.DataSonnetTypeConverters
All Implemented Interfaces:
org.apache.camel.TypeConverters

public class DataSonnetTypeConverters extends Object implements org.apache.camel.TypeConverters
Type converters for DataSonnet.
  • Constructor Details

    • DataSonnetTypeConverters

      public DataSonnetTypeConverters()
  • Method Details

    • toString

      @Converter public static String toString(com.datasonnet.document.DefaultDocument<String> theDocument)
      Convert a DefaultDocument to 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 a DefaultDocument to 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