public enum CompressionType extends java.lang.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 java.lang.String |
compression
The compression used.
|
private static java.util.Map<java.lang.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. |
java.lang.String |
getCompression()
Returns the compression.
|
static CompressionType |
valueOf(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.
|
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 java.lang.String compression
private static final java.util.Map<java.lang.Integer,CompressionType> lookup
public static CompressionType[] values()
for (CompressionType c : CompressionType.values()) System.out.println(c);
public static CompressionType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - 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.CodedEnumCodedEnum.getCode()public java.lang.String getCompression()
Copyright © 2019 Open Microscopy Environment