public class InputStreamUtils extends Object
Constructor | Description |
---|---|
InputStreamUtils() |
Modifier and Type | Method | Description |
---|---|---|
static byte[] |
calculateMD5Digest(InputStream is) |
Calculates the MD5 digest for the given input stream and returns it.
|
static byte[] |
drainInputStream(InputStream inputStream) |
Reads to the end of the inputStream returning a byte array of the contents
|
public static byte[] calculateMD5Digest(InputStream is) throws NoSuchAlgorithmException, IOException
NoSuchAlgorithmException
IOException
public static byte[] drainInputStream(InputStream inputStream)
inputStream
- InputStream to drainCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.