public class ChecksumUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getCRC32Checksum(java.io.InputStream inputStream)
Retrieves the CRC32 of the given input stream.
|
static byte[] |
getMD5Sum(java.io.InputStream inputStream)
Retrieves the MD5SUM of the given input stream.
|
public static byte[] getCRC32Checksum(java.io.InputStream inputStream)
throws java.lang.Exception
inputStream - Input stream containing the data to calculate its CRC32.java.lang.Exception - if the first byte cannot be read for any reason other
than the end of the file, if the input stream has been
closed, or if some other I/O error occurs.public static byte[] getMD5Sum(java.io.InputStream inputStream)
throws java.lang.Exception
inputStream - Input stream containing the data to calculate its MD5SUM.java.lang.Exception - if the MD5 algorithm is not available in the caller's
environment or
if the first byte cannot be read for any reason other
than the end of the file, if the input stream has been
closed, or if some other I/O error occurs.© Copyright 2014 Etherios, Inc. All rights reserved. Etherios, Inc. is a Division of Digi International Inc.