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, skip
read
public InputStreamCache(byte[] data)
public InputStreamCache(byte[] data, int count)
public void writeTo(OutputStream os) throws IOException
writeTo
in interface org.apache.camel.StreamCache
IOException
public org.apache.camel.StreamCache copy(org.apache.camel.Exchange exchange)
copy
in interface org.apache.camel.StreamCache
public boolean inMemory()
inMemory
in interface org.apache.camel.StreamCache
public long length()
length
in interface org.apache.camel.StreamCache
Apache Camel