Class AssetChecksumGeneratorImpl
java.lang.Object
org.apache.tapestry5.internal.services.assets.AssetChecksumGeneratorImpl
- All Implemented Interfaces:
AssetChecksumGenerator
-
Constructor Summary
ConstructorsConstructorDescriptionAssetChecksumGeneratorImpl
(StreamableResourceSource streamableResourceSource, ResourceChangeTracker tracker) -
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.
-
Constructor Details
-
AssetChecksumGeneratorImpl
public AssetChecksumGeneratorImpl(StreamableResourceSource streamableResourceSource, ResourceChangeTracker tracker)
-
-
Method Details
-
generateChecksum
Description copied from interface:AssetChecksumGenerator
Given a raw resource, generates an MD5 checksum of the resource's contents.- Specified by:
generateChecksum
in interfaceAssetChecksumGenerator
- Returns:
- checksum of contents
- Throws:
IOException
-
generateChecksum
Description copied from interface:AssetChecksumGenerator
Given a streamable resource, generates an MD5 checksum of the resource's contents.- Specified by:
generateChecksum
in interfaceAssetChecksumGenerator
- Returns:
- checksum of contents
- Throws:
IOException
-