Interface ChecksumAlgorithmService.ChecksumCalculator

Enclosing interface:
ChecksumAlgorithmService

public static interface ChecksumAlgorithmService.ChecksumCalculator
The checksum calculator.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the algorithm end result as string, never null.
    void
    Updates the checksum algorithm inner state with input.
  • Method Details

    • update

      void update(@Nonnull ByteBuffer input)
      Updates the checksum algorithm inner state with input.
      Throws:
      NullPointerException - if passed in buffer is null.
    • checksum

      @Nonnull String checksum()
      Returns the algorithm end result as string, never null. After invoking this method, this instance should be discarded and not reused. For new checksum calculation you have to get new instance.