public class InputStreamCache extends ByteArrayInputStream implements StreamCache
buf, count, mark, pos
Constructor and Description |
---|
InputStreamCache(byte[] data) |
Modifier and Type | Method and Description |
---|---|
void |
writeTo(OutputStream os)
Writes the stream to the given output
|
available, close, mark, markSupported, read, read, reset, skip
read
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reset
public void writeTo(OutputStream os) throws IOException
StreamCache
writeTo
in interface StreamCache
os
- the destination to write toIOException
- is thrown if write failsApache Camel