public final class InputStreamCache extends ByteArrayInputStream implements org.apache.camel.StreamCache
StreamCache for caching using an in-memory byte array.buf, count, mark, pos| Constructor and Description |
|---|
InputStreamCache(byte[] data) |
InputStreamCache(byte[] data,
int count) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.StreamCache |
copy(org.apache.camel.Exchange exchange) |
boolean |
inMemory() |
long |
length() |
void |
writeTo(OutputStream os) |
available, close, mark, markSupported, read, read, reset, skipreadpublic InputStreamCache(byte[] data)
public InputStreamCache(byte[] data,
int count)
public void writeTo(OutputStream os) throws IOException
writeTo in interface org.apache.camel.StreamCacheIOExceptionpublic org.apache.camel.StreamCache copy(org.apache.camel.Exchange exchange)
copy in interface org.apache.camel.StreamCachepublic boolean inMemory()
inMemory in interface org.apache.camel.StreamCachepublic long length()
length in interface org.apache.camel.StreamCacheApache Camel