Class JavaReadCacheImpl

java.lang.Object
org.sonar.java.caching.JavaReadCacheImpl
All Implemented Interfaces:
JavaReadCache

public class JavaReadCacheImpl extends Object implements JavaReadCache
  • Constructor Details

    • JavaReadCacheImpl

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

    • read

      public InputStream read(String key)
      Description copied from interface: JavaReadCache
      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 JavaReadCache
    • readBytes

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

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object