org.apache.camel.converter.stream
Class ReaderCache
java.lang.Object
java.io.Reader
java.io.StringReader
org.apache.camel.converter.stream.ReaderCache
- All Implemented Interfaces:
- Closeable, Readable, StreamCache
public class ReaderCache
- extends StringReader
- implements StreamCache
StreamCache
implementation for Cache the Reader Reader
s
Method Summary |
void |
close()
|
void |
reset()
Resets the StreamCache for a new stream consumption. |
void |
writeTo(OutputStream os)
Writes the stream to the given output |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReaderCache
public ReaderCache(String data)
close
public void close()
- Specified by:
close
in interface Closeable
- Overrides:
close
in class StringReader
reset
public void reset()
- Description copied from interface:
StreamCache
- Resets the StreamCache for a new stream consumption.
- Specified by:
reset
in interface StreamCache
- Overrides:
reset
in class StringReader
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