org.exoplatform.services.jcr.ext.artifact
Class CRCGenerator
java.lang.Object
org.exoplatform.services.jcr.ext.artifact.CRCGenerator
public class CRCGenerator
- extends Object
Created by The eXo Platform SAS.
Date: 21 Nov 2008
- Version:
- $Id: CheckSumGenerator.java
- Author:
- Dmytro Katayev
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CRCGenerator
public CRCGenerator()
getChecksum
public static String getChecksum(InputStream in,
String algo)
throws NoSuchAlgorithmException,
IOException
- Generates checksum for the InputStream.
- Parameters:
in - stream to generate CheckSumalgo - algorithm name according to the Java
Cryptography Architecture API Specification & Reference
- Returns:
- hexadecimal string checksun representation
- Throws:
NoSuchAlgorithmException
IOException
Copyright © 2012 eXo Platform SAS. All Rights Reserved.