Package org.sonar.python.caching
Class PythonReadCacheImpl
java.lang.Object
org.sonar.python.caching.PythonReadCacheImpl
- All Implemented Interfaces:
PythonReadCache
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PythonReadCacheImpl
public PythonReadCacheImpl(org.sonar.api.batch.sensor.cache.ReadCache readCache)
-
-
Method Details
-
read
Description copied from interface:PythonReadCacheReturns an input stream for the data cached with the providedkey. It is the responsibility of the caller to close the stream.- Specified by:
readin interfacePythonReadCache
-
readBytes
- Specified by:
readBytesin interfacePythonReadCache- Returns:
- the array of bytes stored for the given key, if any.
nullotherwise.
-
contains
Description copied from interface:PythonReadCacheChecks whether the cache contains the providedkey.- Specified by:
containsin interfacePythonReadCache
-