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:
- org.springframework.core.io.InputStreamSource, org.springframework.core.io.Resource
public class CamelClassPathResource
- extends org.springframework.core.io.ClassPathResource
Camel specific ClassPathResource
which uses the ClassResolver
to load resources from the classpath.
Methods inherited from class org.springframework.core.io.ClassPathResource |
createRelative, equals, exists, getClassLoader, getDescription, getFilename, getPath, hashCode |
Methods inherited from class org.springframework.core.io.AbstractFileResolvingResource |
contentLength, getFile, getFile, getFileForLastModifiedCheck, isReadable, lastModified |
Methods inherited from class org.springframework.core.io.AbstractResource |
getURI, isOpen, toString |
CamelClassPathResource
public CamelClassPathResource(org.apache.camel.spi.ClassResolver resolver,
String path,
ClassLoader classLoader)
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream
in interface org.springframework.core.io.InputStreamSource
- Overrides:
getInputStream
in class org.springframework.core.io.ClassPathResource
- Throws:
IOException
getURL
public URL getURL()
throws IOException
- Specified by:
getURL
in interface org.springframework.core.io.Resource
- Overrides:
getURL
in class org.springframework.core.io.ClassPathResource
- Throws:
IOException
Apache CAMEL