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
AStreamCacheforByteArrayInputStream
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description ByteArrayInputStreamCache(ByteArrayInputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.StreamCachecopy(org.apache.camel.Exchange exchange)booleaninMemory()longlength()voidreset()voidwriteTo(OutputStream os)-
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, transferTo
-
-
-
-
Constructor Detail
-
ByteArrayInputStreamCache
public ByteArrayInputStreamCache(ByteArrayInputStream in)
-
-
Method Detail
-
reset
public void reset()
- Specified by:
resetin interfaceorg.apache.camel.StreamCache- Overrides:
resetin classFilterInputStream
-
writeTo
public void writeTo(OutputStream os) throws IOException
- Specified by:
writeToin interfaceorg.apache.camel.StreamCache- Throws:
IOException
-
copy
public org.apache.camel.StreamCache copy(org.apache.camel.Exchange exchange) throws IOException- 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
-
-