Package ome.codecs
Enum CompressionType
- java.lang.Object
-
- java.lang.Enum<CompressionType>
-
- ome.codecs.CompressionType
-
- All Implemented Interfaces:
Serializable
,Comparable<CompressionType>
,loci.common.enumeration.CodedEnum
public enum CompressionType extends Enum<CompressionType> implements loci.common.enumeration.CodedEnum
An enumeration of compression types.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompressionType
get(int code)
Retrieves the compression by reverse lookup of its "code".int
getCode()
Implemented as specified by theCodedEnum
I/F.String
getCompression()
Returns the compression.static CompressionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CompressionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNCOMPRESSED
public static final CompressionType UNCOMPRESSED
-
ZLIB
public static final CompressionType ZLIB
-
CINEPAK
public static final CompressionType CINEPAK
-
ANIMATION
public static final CompressionType ANIMATION
-
H_263
public static final CompressionType H_263
-
SORENSON
public static final CompressionType SORENSON
-
SORENSON_3
public static final CompressionType SORENSON_3
-
MPEG_4
public static final CompressionType MPEG_4
-
LZW
public static final CompressionType LZW
-
J2K
public static final CompressionType J2K
-
J2K_LOSSY
public static final CompressionType J2K_LOSSY
-
JPEG
public static final CompressionType JPEG
-
-
Method Detail
-
values
public static CompressionType[] 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 (CompressionType c : CompressionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompressionType 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 nameNullPointerException
- if the argument is null
-
get
public static CompressionType get(int code)
Retrieves the compression by reverse lookup of its "code".- Parameters:
code
- The code to look up.- Returns:
- The
CompressionType
instance for thecode
ornull
if it does not exist.
-
getCode
public int getCode()
Implemented as specified by theCodedEnum
I/F.- Specified by:
getCode
in interfaceloci.common.enumeration.CodedEnum
- See Also:
CodedEnum.getCode()
-
getCompression
public String getCompression()
Returns the compression.- Returns:
- See above.
-
-