org.apache.camel.spring.spi
Class SpringConverters
java.lang.Object
org.apache.camel.spring.spi.SpringConverters
public final class SpringConverters
- extends Object
Some Spring based
Type Converters
- Version:
- $Revision: 563665 $
Method Summary |
static org.apache.camel.component.bean.BeanInvocation |
toBeanInvocation(org.aopalliance.intercept.MethodInvocation invocation)
|
static File |
toFile(org.springframework.core.io.Resource resource)
|
static InputStream |
toInputStream(org.springframework.core.io.Resource resource)
|
static org.springframework.core.io.ByteArrayResource |
toResource(byte[] data)
|
static org.springframework.core.io.FileSystemResource |
toResource(File file)
|
static org.springframework.core.io.UrlResource |
toResource(String uri)
|
static org.springframework.core.io.UrlResource |
toResource(URL uri)
|
static URL |
toUrl(org.springframework.core.io.Resource resource)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
toInputStream
public static InputStream toInputStream(org.springframework.core.io.Resource resource)
throws IOException
- Throws:
IOException
toFile
public static File toFile(org.springframework.core.io.Resource resource)
throws IOException
- Throws:
IOException
toUrl
public static URL toUrl(org.springframework.core.io.Resource resource)
throws IOException
- Throws:
IOException
toResource
public static org.springframework.core.io.UrlResource toResource(String uri)
throws IOException
- Throws:
IOException
toResource
public static org.springframework.core.io.UrlResource toResource(URL uri)
throws IOException
- Throws:
IOException
toResource
public static org.springframework.core.io.FileSystemResource toResource(File file)
throws IOException
- Throws:
IOException
toResource
public static org.springframework.core.io.ByteArrayResource toResource(byte[] data)
throws IOException
- Throws:
IOException
toBeanInvocation
public static org.apache.camel.component.bean.BeanInvocation toBeanInvocation(org.aopalliance.intercept.MethodInvocation invocation)
Copyright © 2007 Apache Software Foundation. All Rights Reserved.