org.apache.camel.component
Class CamelClassPathResource
java.lang.Object
org.springframework.core.io.AbstractResource
org.springframework.core.io.AbstractFileResolvingResource
org.springframework.core.io.ClassPathResource
org.apache.camel.component.CamelClassPathResource
- All Implemented Interfaces:
- InputStreamSource, Resource
Deprecated. use ResourceEndpoint
. Will be removed in Camel 3.0.
@Deprecated
public class CamelClassPathResource
- extends ClassPathResource
Camel specific ClassPathResource
which uses the ClassResolver
to load resources from the classpath.
CamelClassPathResource
public CamelClassPathResource(org.apache.camel.spi.ClassResolver resolver,
String path,
ClassLoader classLoader)
- Deprecated.
getInputStream
public InputStream getInputStream()
throws IOException
- Deprecated.
- Specified by:
getInputStream
in interface InputStreamSource
- Overrides:
getInputStream
in class ClassPathResource
- Throws:
IOException
getURL
public URL getURL()
throws IOException
- Deprecated.
- Specified by:
getURL
in interface Resource
- Overrides:
getURL
in class ClassPathResource
- Throws:
IOException
Apache CAMEL