public class MD5HashFileGenerator extends java.lang.Object implements HashFileGenerator
| Modifier and Type | Field and Description |
|---|---|
static int |
DEF_CACHE_MAX_SIZE |
static java.lang.String |
DEF_TIME_UNIT |
| Constructor and Description |
|---|
MD5HashFileGenerator(SoyAllowedUrls soyAllowedUrls,
SoyViewConf soyViewConf) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getMD5Checksum(java.io.InputStream is) |
java.util.Optional<java.lang.String> |
hash() |
void |
init() |
public static final int DEF_CACHE_MAX_SIZE
public static final java.lang.String DEF_TIME_UNIT
public MD5HashFileGenerator(SoyAllowedUrls soyAllowedUrls, SoyViewConf soyViewConf)
public void init()
public java.util.Optional<java.lang.String> hash()
throws java.io.IOException
hash in interface HashFileGeneratorjava.io.IOExceptionpublic static java.lang.String getMD5Checksum(java.io.InputStream is)
throws java.io.IOException
java.io.IOException