|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.content.BinaryHelper
public class BinaryHelper
A helper class for dealing with binary data. This class is used to compute the checksum value stored in the WLP Repository.
Constructor Summary | |
---|---|
BinaryHelper()
|
Method Summary | |
---|---|
static String |
createChecksum(InputStream is)
Creates a checksum for a given InputStream. |
static String |
getChecksum(MessageDigest digest)
Takes a populated MessageDigest and returns the HEX representation of the CheckSum. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BinaryHelper()
Method Detail |
---|
public static String createChecksum(InputStream is) throws RepositoryException
MessageDigest
with the MD5
algorithm. Note: This method will consume the InputStream
.
is
- a non-null InputStream
String
containing the checksum
RepositoryException
- if an error occurs during the computation.public static String getChecksum(MessageDigest digest)
MessageDigest
and returns the HEX representation of the CheckSum.
digest
- The digest.
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |