public class ReaderCache extends StringReader implements org.apache.camel.StreamCache
StreamCache
for String Reader
sConstructor and Description |
---|
ReaderCache(String data) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.camel.StreamCache |
copy(org.apache.camel.Exchange exchange) |
boolean |
inMemory() |
long |
length() |
void |
reset() |
void |
writeTo(OutputStream os) |
mark, markSupported, read, read, ready, skip
public ReaderCache(String data)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class StringReader
public void reset()
reset
in interface org.apache.camel.StreamCache
reset
in class StringReader
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) throws IOException
copy
in interface org.apache.camel.StreamCache
IOException
public boolean inMemory()
inMemory
in interface org.apache.camel.StreamCache
public long length()
length
in interface org.apache.camel.StreamCache
Apache Camel