Package org.apache.camel.support
Class CachedResource
java.lang.Object
org.apache.camel.support.ResourceSupport
org.apache.camel.support.CachedResource
- All Implemented Interfaces:
org.apache.camel.spi.Resource
A resource which will cache the content of the input stream on first read.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.camel.support.ResourceSupport
equals, getLocation, getScheme, hashCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.camel.spi.Resource
getReader, getReader
-
Constructor Details
-
CachedResource
public CachedResource(org.apache.camel.spi.Resource delegate)
-
-
Method Details
-
exists
public boolean exists() -
getURI
-
getURL
- Throws:
MalformedURLException
-
getInputStream
- Throws:
IOException
-