com.kii.sdk.photocolle
Enum MimeType

java.lang.Object
  extended by java.lang.Enum<MimeType>
      extended by com.kii.sdk.photocolle.MimeType
All Implemented Interfaces:
Serializable, Comparable<MimeType>

public enum MimeType
extends Enum<MimeType>

The mime type.


Enum Constant Summary
AVI
          mime type for avi
JPEG
          mime type for jpeg
MP4
          mime type for mp4
MPEG
          mime type for mpeg
PJPEG
          mime type for progressive jpeg
QUICKTIME
          mime type for quick time
THREE_GP
          mime type for 3gp
VND_MTS
          mime type for vender spacific
 
Method Summary
static MimeType fromString(String label)
          Convert from a label to a mime type.
 String getExt()
          Get a extension.
 String getLabel()
          Get a label.
static MimeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MimeType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

JPEG

public static final MimeType JPEG
mime type for jpeg


PJPEG

public static final MimeType PJPEG
mime type for progressive jpeg


THREE_GP

public static final MimeType THREE_GP
mime type for 3gp


AVI

public static final MimeType AVI
mime type for avi


QUICKTIME

public static final MimeType QUICKTIME
mime type for quick time


MP4

public static final MimeType MP4
mime type for mp4


VND_MTS

public static final MimeType VND_MTS
mime type for vender spacific


MPEG

public static final MimeType MPEG
mime type for mpeg

Method Detail

values

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

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

valueOf

public static MimeType 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

getLabel

public String getLabel()
Get a label.

Returns:
the label of this mime type.

getExt

public String getExt()
Get a extension.

Returns:
the extension of this mime type.

fromString

public static MimeType fromString(String label)
                           throws ParameterException
Convert from a label to a mime type.

Parameters:
the - label of mime type.
Returns:
the mime type.
Throws:
ParameterException - if this mime type has no constant with the specified label.