eXo JCR :: Ext :: Services 1.15.3-GA

org.exoplatform.services.jcr.ext.artifact
Class CRCGenerator

java.lang.Object
  extended by 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

Constructor Summary
CRCGenerator()
           
 
Method Summary
static String getChecksum(InputStream in, String algo)
          Generates checksum for the InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRCGenerator

public CRCGenerator()
Method Detail

getChecksum

public static String getChecksum(InputStream in,
                                 String algo)
                          throws NoSuchAlgorithmException,
                                 IOException
Generates checksum for the InputStream.

Parameters:
in - stream to generate CheckSum
algo - algorithm name according to the Java Cryptography Architecture API Specification & Reference
Returns:
hexadecimal string checksun representation
Throws:
NoSuchAlgorithmException
IOException

eXo JCR :: Ext :: Services 1.15.3-GA

Copyright © 2013 eXo Platform SAS. All Rights Reserved.