Interface AssetChecksumGenerator
- All Known Implementing Classes:
AssetChecksumGeneratorImpl
public interface AssetChecksumGenerator
Generates a checksum of an arbitrary
Resource
or StreamableResource
which can be incorporated into
the client URL of an Asset.- Since:
- 5.4
-
Method Summary
Modifier and TypeMethodDescriptiongenerateChecksum
(Resource resource) Given a raw resource, generates an MD5 checksum of the resource's contents.generateChecksum
(StreamableResource resource) Given a streamable resource, generates an MD5 checksum of the resource's contents.
-
Method Details
-
generateChecksum
Given a raw resource, generates an MD5 checksum of the resource's contents.- Parameters:
resource
-- Returns:
- checksum of contents
- Throws:
IOException
-
generateChecksum
Given a streamable resource, generates an MD5 checksum of the resource's contents.- Parameters:
resource
-- Returns:
- checksum of contents
- Throws:
IOException
-