![JAR search and dependency download from the Maven repository](/logo.png)
aQute.libg.shacache.ShaSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aQute.libg Show documentation
Show all versions of aQute.libg Show documentation
A library to be statically linked. Contains many small utilities. This bundle should not be installed in a framework, it is compile only.
package aQute.libg.shacache;
import java.io.InputStream;
/**
* An object that can retrieve an inputstream on a given SHA-1
*/
public interface ShaSource {
/**
* Retrieving the stream is fast so do not cache
*
* @return true if a fast retrieval can be done
*/
boolean isFast();
/**
* Get an inputstream based on the given SHA-1
*
* @param sha the SHA-1
* @return a stream or null if not found
*/
InputStream get(String sha) throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy