Class PythonReadCacheImpl

java.lang.Object
org.sonar.python.caching.PythonReadCacheImpl
All Implemented Interfaces:
PythonReadCache

public class PythonReadCacheImpl extends Object implements PythonReadCache
  • Constructor Details

    • PythonReadCacheImpl

      public PythonReadCacheImpl(org.sonar.api.batch.sensor.cache.ReadCache readCache)
  • Method Details

    • read

      public InputStream read(String key)
      Description copied from interface: PythonReadCache
      Returns an input stream for the data cached with the provided key. It is the responsibility of the caller to close the stream.
      Specified by:
      read in interface PythonReadCache
    • readBytes

      @CheckForNull public byte[] readBytes(String key)
      Specified by:
      readBytes in interface PythonReadCache
      Returns:
      the array of bytes stored for the given key, if any. null otherwise.
    • contains

      public boolean contains(String key)
      Description copied from interface: PythonReadCache
      Checks whether the cache contains the provided key.
      Specified by:
      contains in interface PythonReadCache