org.apache.camel.groovy.converter
Class TypeConverter

java.lang.Object
  extended by org.apache.camel.groovy.converter.TypeConverter

@Converter
public final class TypeConverter
extends Object

TypeConverter for Groovy GStrings.


Method Summary
static Boolean toBoolean(groovy.lang.GString value)
           
static byte[] toByteArray(groovy.lang.GString value, org.apache.camel.Exchange exchange)
           
static char toChar(groovy.lang.GString value)
           
static Double toDouble(groovy.lang.GString value)
           
static Float toFloat(groovy.lang.GString value)
           
static InputStream toInputStream(groovy.lang.GString value, org.apache.camel.Exchange exchange)
           
static Integer toInteger(groovy.lang.GString value)
           
static Long toLong(groovy.lang.GString value)
           
static StringReader toReader(groovy.lang.GString value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toInputStream

@Converter
public static InputStream toInputStream(groovy.lang.GString value,
                                                  org.apache.camel.Exchange exchange)
                                 throws IOException
Throws:
IOException

toByteArray

@Converter
public static byte[] toByteArray(groovy.lang.GString value,
                                           org.apache.camel.Exchange exchange)
                          throws IOException
Throws:
IOException

toReader

@Converter
public static StringReader toReader(groovy.lang.GString value)

toChar

@Converter
public static char toChar(groovy.lang.GString value)

toInteger

@Converter
public static Integer toInteger(groovy.lang.GString value)

toLong

@Converter
public static Long toLong(groovy.lang.GString value)

toFloat

@Converter
public static Float toFloat(groovy.lang.GString value)

toDouble

@Converter
public static Double toDouble(groovy.lang.GString value)

toBoolean

@Converter
public static Boolean toBoolean(groovy.lang.GString value)


Apache Camel