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

## org.gradle.api.changedetection.digest
Interface DigesterUtilStrategy

    interface DigesterUtilStrategy

Interface for actual digester update algorithms.

author:
  Tom Eyckmans

Method Summary
`void` | `digestDirectory(MessageDigest digester, File directory, long directorySize)` Called by a DigesterUtil.
`void` | `digestFile(MessageDigest digester, File file)` Called by a DigesterUtil.

Method Detail

### digestDirectory

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

  Called by a DigesterUtil. The DigesterUtil needs to make sure that the following holds true before calling this method: - digester is not null - directory is not null - the directory exists - the directory is a directory
  param:
    digester The digester to update.
  param:
    directory The directory that needs it's digest calculated.
  param:
    directorySize The directory size that needs to be used during digest calculation.

### digestFile

    public void digestFile(MessageDigest digester, File file)

  Called by a DigesterUtil. The DigesterUtil needs to make sure that the following holds true before calling this method: - digester is not null - file is not null - the file exists - the file is a file
  param:
    digester The digester to update.
  param:
    file The file that needs it's digest calculated.

Groovy Documentation