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
A
StreamCache for String Readers.
Important: All the classes from the Camel release that implements StreamCache is NOT intended for end
users to create as instances, but they are part of Camels
stream-caching functionality.-
Field Summary
Fields inherited from interface org.apache.camel.StreamCache
DEFAULT_SPOOL_THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.StringReader
mark, markSupported, read, read, ready, skipMethods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
Constructor Details
-
ReaderCache
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classStringReader
-
reset
public void reset()- Specified by:
resetin interfaceorg.apache.camel.StreamCache- Overrides:
resetin classStringReader
-
writeTo
- Specified by:
writeToin interfaceorg.apache.camel.StreamCache- Throws:
IOException
-
copy
- Specified by:
copyin interfaceorg.apache.camel.StreamCache- Throws:
IOException
-
inMemory
public boolean inMemory()- Specified by:
inMemoryin interfaceorg.apache.camel.StreamCache
-
length
public long length()- Specified by:
lengthin interfaceorg.apache.camel.StreamCache
-