Interface AssetChecksumGenerator
-
- All Known Implementing Classes:
AssetChecksumGeneratorImpl
public interface AssetChecksumGenerator
Generates a checksum of an arbitraryResourceorStreamableResourcewhich can be incorporated into the client URL of an Asset.- Since:
- 5.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgenerateChecksum(Resource resource)Given a raw resource, generates an MD5 checksum of the resource's contents.java.lang.StringgenerateChecksum(StreamableResource resource)Given a streamable resource, generates an MD5 checksum of the resource's contents.
-
-
-
Method Detail
-
generateChecksum
java.lang.String generateChecksum(Resource resource) throws java.io.IOException
Given a raw resource, generates an MD5 checksum of the resource's contents.- Parameters:
resource-- Returns:
- checksum of contents
- Throws:
java.io.IOException
-
generateChecksum
java.lang.String generateChecksum(StreamableResource resource) throws java.io.IOException
Given a streamable resource, generates an MD5 checksum of the resource's contents.- Parameters:
resource-- Returns:
- checksum of contents
- Throws:
java.io.IOException
-
-