Package aQute.libg.shacache
Interface ShaSource
public interface ShaSource
An object that can retrieve an inputstream on a given SHA-1
-
Method Summary
Modifier and TypeMethodDescriptionGet an inputstream based on the given SHA-1boolean
isFast()
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
Get an inputstream based on the given SHA-1- Parameters:
sha
- the SHA-1- Returns:
- a stream or null if not found
- Throws:
Exception
-