Package ome.codecs
Enum CompressionType
- java.lang.Object
-
- java.lang.Enum<CompressionType>
-
- ome.codecs.CompressionType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CompressionType>,loci.common.enumeration.CodedEnum
public enum CompressionType extends java.lang.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 CompressionTypeget(int code)Retrieves the compression by reverse lookup of its "code".intgetCode()Implemented as specified by theCodedEnumI/F.java.lang.StringgetCompression()Returns the compression.static CompressionTypevalueOf(java.lang.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(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 namejava.lang.NullPointerException- 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
CompressionTypeinstance for thecodeornullif it does not exist.
-
getCode
public int getCode()
Implemented as specified by theCodedEnumI/F.- Specified by:
getCodein interfaceloci.common.enumeration.CodedEnum- See Also:
CodedEnum.getCode()
-
getCompression
public java.lang.String getCompression()
Returns the compression.- Returns:
- See above.
-
-