ro.isdc.wro.model.resource.support.hash
Interface HashStrategy

All Known Implementing Classes:
AbstractDigesterHashStrategy, ConfigurableHashStrategy, CRC32HashStrategy, MD5HashStrategy, SHA1HashStrategy

public interface HashStrategy

Creates a fingerprint representation of the resource content.

Since:
1.4.7
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-2013. All Rights Reserved.