Class PythonReadCacheImpl

    • Constructor Detail

      • PythonReadCacheImpl

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

      • 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.