public enum CompressionType extends Enum<CompressionType> implements loci.common.enumeration.CodedEnum
Enum Constant and Description |
---|
ANIMATION |
CINEPAK |
H_263 |
J2K |
J2K_LOSSY |
JPEG |
LZW |
MPEG_4 |
SORENSON |
SORENSON_3 |
UNCOMPRESSED |
ZLIB |
Modifier and Type | Field and Description |
---|---|
private int |
code
Code for the compression.
|
private String |
compression
The compression used.
|
private static Map<Integer,CompressionType> |
lookup
Map used to retrieve the compression type corresponding to the code.
|
Modifier and Type | Method and Description |
---|---|
static CompressionType |
get(int code)
Retrieves the compression by reverse lookup of its "code".
|
int |
getCode()
Implemented as specified by the
CodedEnum 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.
|
public static final CompressionType UNCOMPRESSED
public static final CompressionType ZLIB
public static final CompressionType CINEPAK
public static final CompressionType ANIMATION
public static final CompressionType H_263
public static final CompressionType SORENSON
public static final CompressionType SORENSON_3
public static final CompressionType MPEG_4
public static final CompressionType LZW
public static final CompressionType J2K
public static final CompressionType J2K_LOSSY
public static final CompressionType JPEG
private int code
private String compression
private static final Map<Integer,CompressionType> lookup
public static CompressionType[] values()
for (CompressionType c : CompressionType.values()) System.out.println(c);
public static CompressionType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static CompressionType get(int code)
code
- The code to look up.CompressionType
instance for the
code
or null
if it does not exist.public int getCode()
CodedEnum
I/F.getCode
in interface loci.common.enumeration.CodedEnum
CodedEnum.getCode()
public String getCompression()
Copyright © 2017 Open Microscopy Environment