Interface AssetChecksumGenerator
-
- All Known Implementing Classes:
AssetChecksumGeneratorImpl
public interface AssetChecksumGenerator
Generates a checksum of an arbitraryResource
orStreamableResource
which 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 String
generateChecksum(Resource resource)
Given a raw resource, generates an MD5 checksum of the resource's contents.String
generateChecksum(StreamableResource resource)
Given a streamable resource, generates an MD5 checksum of the resource's contents.
-
-
-
Method Detail
-
generateChecksum
String generateChecksum(Resource resource) throws IOException
Given a raw resource, generates an MD5 checksum of the resource's contents.- Parameters:
resource
-- Returns:
- checksum of contents
- Throws:
IOException
-
generateChecksum
String generateChecksum(StreamableResource resource) throws IOException
Given a streamable resource, generates an MD5 checksum of the resource's contents.- Parameters:
resource
-- Returns:
- checksum of contents
- Throws:
IOException
-
-