com.android.sdklib.internal.repository.archives
Enum Archive.ChecksumType

java.lang.Object
  extended by java.lang.Enum<Archive.ChecksumType>
      extended by com.android.sdklib.internal.repository.archives.Archive.ChecksumType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Archive.ChecksumType>
Enclosing class:
Archive

public static enum Archive.ChecksumType
extends java.lang.Enum<Archive.ChecksumType>

The checksum type.


Enum Constant Summary
SHA1
          A SHA1 checksum, represented as a 40-hex string.
 
Method Summary
 java.security.MessageDigest getMessageDigest()
          Returns a new MessageDigest instance for this checksum type.
static Archive.ChecksumType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Archive.ChecksumType[] 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

SHA1

public static final Archive.ChecksumType SHA1
A SHA1 checksum, represented as a 40-hex string.

Method Detail

values

public static Archive.ChecksumType[] 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 (Archive.ChecksumType c : Archive.ChecksumType.values())
    System.out.println(c);

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

valueOf

public static Archive.ChecksumType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getMessageDigest

public java.security.MessageDigest getMessageDigest()
                                             throws java.security.NoSuchAlgorithmException
Returns a new MessageDigest instance for this checksum type.

Throws:
java.security.NoSuchAlgorithmException - if this algorithm is not available.