Class ByteArrayInputStreamCache
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.camel.converter.stream.ByteArrayInputStreamCache
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.camel.StreamCache
public class ByteArrayInputStreamCache
extends FilterInputStream
implements org.apache.camel.StreamCache
A
StreamCache
for ByteArrayInputStream
.
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 class java.io.FilterInputStream
in
Fields inherited from interface org.apache.camel.StreamCache
DEFAULT_SPOOL_THRESHOLD
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ByteArrayInputStreamCache
-
-
Method Details
-
reset
public void reset()- Specified by:
reset
in interfaceorg.apache.camel.StreamCache
- Overrides:
reset
in classFilterInputStream
-
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
-