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

## com.sun.mdm.index.idgen
Interface ChecksumCalculator

All Known Implementing Classes:
  DefaultChecksumCalculator, SampleChecksumCalculator

public interface ChecksumCalculator

Interface to calculate checksums

Method Summary
`java.lang.String` | `calcChecksum(java.lang.String baseData)` Calculate the checksum for the supplied data.
`void` | `setParameter(java.lang.String parameterName, java.lang.Object value)` Parameters of the checksum calculator file are set using this method.

Method Detail

### calcChecksum

    public java.lang.String calcChecksum(java.lang.String baseData)
                                  throws SEQException

  Calculate the checksum for the supplied data. A return value of null indicates that no checksum is valid for the supplied data. This could be used, for example, where a modulo 11 checksum algorithm is used, and the algorithm specifies that if the remainder is 10, the original number is invalid.

  Parameters:
    `baseData` - data for which the checksum is to be calculated
  Returns:
    calculated checksum or null if no checksum is valid
  Throws:
    `SEQException` - An error occurred

### setParameter

    public void setParameter(java.lang.String parameterName,
                             java.lang.Object value)
                      throws SEQException

  Parameters of the checksum calculator file are set using this method.

  Parameters:
    `parameterName` - parameter
    `value` - parameter value
  Throws:
    `SEQException` - An error occurred

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

Sun Microsystems, Inc.