org.apache.camel.converter.stream
Class InputStreamCache
java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
org.apache.camel.converter.stream.InputStreamCache
- All Implemented Interfaces:
- Closeable, StreamCache
public class InputStreamCache
- extends ByteArrayInputStream
- implements StreamCache
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputStreamCache
public InputStreamCache(byte[] data)
writeTo
public void writeTo(OutputStream os)
throws IOException
- Description copied from interface:
StreamCache
- Writes the stream to the given output
- Specified by:
writeTo
in interface StreamCache
- Parameters:
os
- the destination to write to
- Throws:
IOException
- is thrown if write fails
Apache CAMEL