goldengate.common.digest
Enum FilesystemBasedDigest.DigestAlgo

java.lang.Object
  extended by java.lang.Enum<FilesystemBasedDigest.DigestAlgo>
      extended by goldengate.common.digest.FilesystemBasedDigest.DigestAlgo
All Implemented Interfaces:
Serializable, Comparable<FilesystemBasedDigest.DigestAlgo>
Enclosing class:
FilesystemBasedDigest

public static enum FilesystemBasedDigest.DigestAlgo
extends Enum<FilesystemBasedDigest.DigestAlgo>

All Algo that Digest Class could handle

Author:
Frederic Bregier

Enum Constant Summary
ADLER32
           
CRC32
           
MD2
           
MD5
           
SHA1
           
SHA256
           
SHA384
           
SHA512
           
 
Field Summary
 int byteSize
           
 String name
           
 
Method Summary
 int getByteSize()
           
 int getHexSize()
           
static FilesystemBasedDigest.DigestAlgo valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FilesystemBasedDigest.DigestAlgo[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CRC32

public static final FilesystemBasedDigest.DigestAlgo CRC32

ADLER32

public static final FilesystemBasedDigest.DigestAlgo ADLER32

MD5

public static final FilesystemBasedDigest.DigestAlgo MD5

MD2

public static final FilesystemBasedDigest.DigestAlgo MD2

SHA1

public static final FilesystemBasedDigest.DigestAlgo SHA1

SHA256

public static final FilesystemBasedDigest.DigestAlgo SHA256

SHA384

public static final FilesystemBasedDigest.DigestAlgo SHA384

SHA512

public static final FilesystemBasedDigest.DigestAlgo SHA512
Field Detail

name

public String name

byteSize

public int byteSize
Method Detail

values

public static FilesystemBasedDigest.DigestAlgo[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FilesystemBasedDigest.DigestAlgo c : FilesystemBasedDigest.DigestAlgo.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FilesystemBasedDigest.DigestAlgo valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getByteSize

public int getByteSize()
Returns:
the length in bytes of one Digest

getHexSize

public int getHexSize()
Returns:
the length in Hex form of one Digest


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.