Package aQute.libg.shacache
Interface ShaSource
-
public interface ShaSource
An object that can retrieve an inputstream on a given SHA-1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStream
get(java.lang.String sha)
Get an inputstream based on the given SHA-1boolean
isFast()
Retrieving the stream is fast so do not cache
-
-
-
Method Detail
-
isFast
boolean isFast()
Retrieving the stream is fast so do not cache- Returns:
- true if a fast retrieval can be done
-
get
java.io.InputStream get(java.lang.String sha) throws java.lang.Exception
Get an inputstream based on the given SHA-1- Parameters:
sha
- the SHA-1- Returns:
- a stream or null if not found
- Throws:
java.lang.Exception
-
-