Java CRC32 Byte Array crc32(String value)

Here you can find the source of crc32(String value)

Description

Computes and returns the CRC32 hash value for the supplied string.

License

Open Source License

Declaration

public static int crc32(String value) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.zip.CRC32;

public class Main {
    protected static CRC32 _crc = new CRC32();

    /**/*from w w  w. j a  v  a 2s.co m*/
     * Computes and returns the CRC32 hash value for the supplied string.
     */
    public static int crc32(String value) {
        _crc.reset();
        _crc.update(value.getBytes());
        return (int) _crc.getValue();
    }
}

Related

  1. crc32(byte[] bts)
  2. CRC32(byte[] buffer)
  3. crc32(byte[] bytes)
  4. crc32(byte[] bytes)
  5. crc32(final byte[] bytes)
  6. crc32Number(String s)
  7. crcBytes(byte[]... data)
  8. createRandomCrc32Hex()
  9. getCRC()