Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    public interface DigesterUtilStrategy

Interface for actual digester update algorithms.

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

Method Detail

### digestFile

    void digestFile(java.security.MessageDigest digester,
                    java.io.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

  Parameters:
    `digester` - The digester to update.
    `file` - The file that needs it's digest calculated.

### digestDirectory

    void digestDirectory(java.security.MessageDigest digester,
                         java.io.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

  Parameters:
    `digester` - The digester to update.
    `directory` - The directory that needs it's digest calculated.
    `directorySize` - The directory size that needs to be used during digest calculation.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD