org.apache.camel.spring.spi
Class SpringConverters

java.lang.Object
  extended by org.apache.camel.spring.spi.SpringConverters

public final class SpringConverters
extends Object

Some Spring based Type Converters

Version:
$Revision: 630591 $

Method Summary
static BeanInvocation toBeanInvocation(org.aopalliance.intercept.MethodInvocation invocation)
           
static File toFile(Resource resource)
           
static InputStream toInputStream(Resource resource)
           
static ByteArrayResource toResource(byte[] data)
           
static FileSystemResource toResource(File file)
           
static UrlResource toResource(String uri)
           
static UrlResource toResource(URL uri)
           
static URL toUrl(Resource resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toInputStream

public static InputStream toInputStream(Resource resource)
                                 throws IOException
Throws:
IOException

toFile

public static File toFile(Resource resource)
                   throws IOException
Throws:
IOException

toUrl

public static URL toUrl(Resource resource)
                 throws IOException
Throws:
IOException

toResource

public static UrlResource toResource(String uri)
                              throws IOException
Throws:
IOException

toResource

public static UrlResource toResource(URL uri)
                              throws IOException
Throws:
IOException

toResource

public static FileSystemResource toResource(File file)
                                     throws IOException
Throws:
IOException

toResource

public static ByteArrayResource toResource(byte[] data)
                                    throws IOException
Throws:
IOException

toBeanInvocation

public static BeanInvocation toBeanInvocation(org.aopalliance.intercept.MethodInvocation invocation)


Copyright © 2009 Apache Software Foundation. All Rights Reserved.