Interface ShaSource


public interface ShaSource
An object that can retrieve an inputstream on a given SHA-1
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String sha)
    Get an inputstream based on the given SHA-1
    boolean
    Retrieving the stream is fast so do not cache
  • Method Details

    • isFast

      boolean isFast()
      Retrieving the stream is fast so do not cache
      Returns:
      true if a fast retrieval can be done
    • get

      InputStream get(String sha) throws Exception
      Get an inputstream based on the given SHA-1
      Parameters:
      sha - the SHA-1
      Returns:
      a stream or null if not found
      Throws:
      Exception