Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gradle.api.changedetection.digest
Class DefaultDigesterUtil

    java.lang.Object
      org.gradle.api.changedetection.digest.DefaultDigesterUtil

All Implemented Interfaces:
  DigesterUtil

    class DefaultDigesterUtil

author:
  Tom Eyckmans

Constructor Summary
`DefaultDigesterUtil(DigesterUtilStrategy strategy)`

Method Summary
`void` | `digestDirectory(MessageDigest digester, File directory, long directorySize)` Calls digestDirectory on the selected stategy.
`void` | `digestFile(MessageDigest digester, File file)` Calls digestFile on the selected strategy.

Methods inherited from class java.lang.Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll

Constructor Detail

### DefaultDigesterUtil

    public DefaultDigesterUtil(DigesterUtilStrategy strategy)

Method Detail

### digestDirectory

    public void digestDirectory(MessageDigest digester, File directory, long directorySize)

  Calls digestDirectory on the selected stategy. This method throws an IllegalArgumentException when: - strategyName is null - digester is null - directory is null - directory doesn't exists - directory is not a directory - strategyName is not supported
  param:
    digester The digester to update.
  param:
    directory The directory that needs it's digest calculated.
  param:
    directorySize The size of the directory to use for digest calculation.

### digestFile

    public void digestFile(MessageDigest digester, File file)

  Calls digestFile on the selected strategy. This method throws an IllegalArgumentException when: - strategyName is null - digester is null - file is null - file doesn't exists - file is not a file - strategyName is not supported
  param:
    digester The digester to update.
  param:
    file The file that needs it's digest calculated.

Groovy Documentation