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 Reader
s.
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, skip
Methods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
Constructor Details
-
ReaderCache
-
-
Method Details
-
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
- Specified by:
writeTo
in interfaceorg.apache.camel.StreamCache
- Throws:
IOException
-
copy
- 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
-
position
public long position()- Specified by:
position
in interfaceorg.apache.camel.StreamCache
-