Class ChecksumUtils
- java.lang.Object
-
- org.apache.karaf.features.internal.util.ChecksumUtils
-
public final class ChecksumUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChecksumUtils.CRCInputStream
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
checksum(InputStream is)
Compute a checksum for the file or directory that consists of the name, length and the last modified date for a file and its children in case of a directory
-
-
-
Method Detail
-
checksum
public static long checksum(InputStream is) throws IOException
Compute a checksum for the file or directory that consists of the name, length and the last modified date for a file and its children in case of a directory- Parameters:
is
- the input stream- Returns:
- a checksum identifying any change
- Throws:
IOException
- in case of checksum failure.
-
-