ro.isdc.wro.model.resource.util
Interface HashBuilder

All Known Implementing Classes:
AbstractDigesterHashBuilder, CRC32HashBuilder, MD5HashBuilder, SHA1HashBuilder

public interface HashBuilder

Creates a fingerprint representation of the resource content.

Author:
Alex Objelean

Method Summary
 String getHash(InputStream inputStream)
           
 

Method Detail

getHash

String getHash(InputStream inputStream)
               throws IOException
Parameters:
inputStream - to digest.
Returns:
the hash of the content.
Throws:
IOException - if there was an error during reading the stream content.


Copyright © 2008-2011. All Rights Reserved.