public static class SHASum.TempJarSHASum extends SHASum
SHASum
specialization utilizing TempJarCache
to access jar file content for SHA computationSHASum.TempJarSHASum
Constructor and Description |
---|
TempJarSHASum(MessageDigest digest,
Class<?> jarclazz,
List<Pattern> excludes,
List<Pattern> includes)
Instance to ensure proper
SHASum.compute(boolean) of identical SHA sums over same contents within given paths across machines. |
Modifier and Type | Method and Description |
---|---|
String |
getOrigin() |
compute, getExcludes, getIncludes, getOrigins, main, sort, toHexString, updateDigest
public TempJarSHASum(MessageDigest digest, Class<?> jarclazz, List<Pattern> excludes, List<Pattern> includes) throws SecurityException, IllegalArgumentException, IOException, URISyntaxException
SHASum.compute(boolean)
of identical SHA sums over same contents within given paths across machines.
Instantiation of this class is lightweight, SHASum.compute(boolean)
performs all operations.
TempJarCache.getTempFileCache()
's TempFileCache.getTempDir()
is used as origin for IOUtil.filesOf(List, List, List)
digest
- the SHA algorithmjarclazz
- a class from the desired classpath jar file used for TempJarCache.addAll(Class, com.jogamp.common.net.Uri)
excludes
- the optional exclude patterns to be used for IOUtil.filesOf(List, List, List)
includes
- the optional include patterns to be used for IOUtil.filesOf(List, List, List)
SecurityException
IllegalArgumentException
IOException
URISyntaxException
public final String getOrigin()