Class InputStreamCacheWrapper

java.lang.Object
java.io.InputStream
org.openhab.core.cache.lru.InputStreamCacheWrapper
All Implemented Interfaces:
Closeable, AutoCloseable

@NonNullByDefault public class InputStreamCacheWrapper extends InputStream
Each cache result instance can handle several InputStreams. This class is a wrapper for such functionality and can ask the cached entry for data, allowing concurrent access to the source even if it is currently actively read from the supplier service. This class implements the two main read methods (byte by byte, and with an array)
Author:
Gwendal Roulleau - Initial contribution