Class ReaderCache
- java.lang.Object
-
- java.io.Reader
-
- java.io.StringReader
-
- org.apache.camel.converter.stream.ReaderCache
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
,org.apache.camel.StreamCache
public class ReaderCache extends StringReader implements org.apache.camel.StreamCache
AStreamCache
for StringReader
s
-
-
Constructor Summary
Constructors Constructor Description ReaderCache(String data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.apache.camel.StreamCache
copy(org.apache.camel.Exchange exchange)
boolean
inMemory()
long
length()
void
reset()
void
writeTo(OutputStream os)
-
Methods inherited from class java.io.StringReader
mark, markSupported, read, read, ready, skip
-
Methods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
-
-
-
Constructor Detail
-
ReaderCache
public ReaderCache(String data)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classStringReader
-
reset
public void reset()
- Specified by:
reset
in interfaceorg.apache.camel.StreamCache
- Overrides:
reset
in classStringReader
-
writeTo
public void writeTo(OutputStream os) throws IOException
- Specified by:
writeTo
in interfaceorg.apache.camel.StreamCache
- Throws:
IOException
-
copy
public org.apache.camel.StreamCache copy(org.apache.camel.Exchange exchange) throws IOException
- Specified by:
copy
in interfaceorg.apache.camel.StreamCache
- Throws:
IOException
-
inMemory
public boolean inMemory()
- Specified by:
inMemory
in interfaceorg.apache.camel.StreamCache
-
length
public long length()
- Specified by:
length
in interfaceorg.apache.camel.StreamCache
-
-