public final class RepositoryContentHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DIGEST_ALGORITHM |
Modifier and Type | Method and Description |
---|---|
static String |
getDigest(InputStream input)
Get the digest for a given input stream using the default algorithm
|
static String |
getDigest(InputStream input,
String algorithm)
Get the digest for a given input stream and algorithm
|
public static final String DEFAULT_DIGEST_ALGORITHM
public static String getDigest(InputStream input) throws IOException, NoSuchAlgorithmException
IOException
NoSuchAlgorithmException
public static String getDigest(InputStream input, String algorithm) throws IOException, NoSuchAlgorithmException
IOException
NoSuchAlgorithmException
Copyright © 2013 JBoss by Red Hat. All rights reserved.