|
jaulib v1.4.1
Jau Support Library (C++, Java, ..)
|

jaulib definition of TempJarSHASum's specialization of SHASum.
More...
Public Member Functions | |
| JaulibJarSHASum () throws SecurityException, IllegalArgumentException, NoSuchAlgorithmException, IOException, URISyntaxException | |
See JaulibJarSHASum. | |
Public Member Functions inherited from org.jau.pkg.TempJarSHASum | |
| TempJarSHASum (final MessageDigest digest, final Class<?> jarclazz, final List< Pattern > excludes, final List< Pattern > includes) throws SecurityException, IllegalArgumentException, IOException, URISyntaxException | |
Instance to ensure proper compute(boolean) of identical SHA sums over same contents within given paths across machines. | |
| final String | getOrigin () |
Public Member Functions inherited from org.jau.sec.SHASum | |
| SHASum (final MessageDigest digest, final List< String > origins, final List< Pattern > excludes, final List< Pattern > includes) | |
Instance to ensure proper compute(boolean) of identical SHA sums over same contents within given paths across machines. | |
| final byte[] | compute (final boolean verbose) throws IOException |
Implementation gathers all files traversing through given paths via IOUtil#filesOf(List, List, List), sorts the resulting file list via sort(ArrayList) and finally calculates the SHA sum over its byte content via updateDigest(MessageDigest, List). | |
| final List< String > | getOrigins () |
| final List< Pattern > | getExcludes () |
| final List< Pattern > | getIncludes () |
Additional Inherited Members | |
Static Public Member Functions inherited from org.jau.sec.SHASum | |
| static long | updateDigest (final MessageDigest digest, final List< String > filenames) throws IOException |
Updates the given digest with the bytes contained by the files denoted by the given filenames in the given order. | |
| static StringBuilder | toHexString (final byte[] shasum, StringBuilder sb) |
| Simple helper to print the given byte-array into a string, here appended to StringBuilder. | |
| static List< String > | sort (final ArrayList< String > source) |
Returns the sorted list of given strings using String#compareTo(String)'s lexicographically comparison. | |
| static void | main (final String[] args) throws IOException |
| Main entry point taking var-arg path or gnu-arguments with a leading '–'. | |
jaulib definition of TempJarSHASum's specialization of SHASum.
Implementation uses org.jau.pkg.cache.TempJarCache.
Constructor defines the includes and excludes as used for jaulib SHASum computation.
Definition at line 48 of file JaulibJarSHASum.java.
| org.jau.pkg.JaulibJarSHASum.JaulibJarSHASum | ( | ) | throws SecurityException, IllegalArgumentException, NoSuchAlgorithmException, IOException, URISyntaxException |
See JaulibJarSHASum.
| SecurityException | |
| IllegalArgumentException | |
| NoSuchAlgorithmException | |
| IOException | |
| URISyntaxException |
Definition at line 57 of file JaulibJarSHASum.java.