com.morpho.morphosmart.sdk
Enum CompressionAlgorithm

java.lang.Object
  extended by java.lang.Enum<CompressionAlgorithm>
      extended by com.morpho.morphosmart.sdk.CompressionAlgorithm
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CompressionAlgorithm>

public enum CompressionAlgorithm
extends java.lang.Enum<CompressionAlgorithm>


Enum Constant Summary
MORPHO_COMPRESS_V1
          This compression algorithm is recommended when the device is connected by a RS232 port.
MORPHO_COMPRESS_WSQ
          WSQ image compression (Wavelets Scalar Quantization algorithm) is applied.
MORPHO_NO_COMPRESS
          No image compression is applied.
NO_IMAGE
           
 
Method Summary
 int getCode()
           
static CompressionAlgorithm GetCompressionAlgorithm(int firmwareCompressionAlgorithm)
           
 java.lang.String getExtension()
           
 java.lang.String getLabel()
           
protected static CompressionAlgorithm getValue(int id)
           
static CompressionAlgorithm valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CompressionAlgorithm[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NO_IMAGE

public static final CompressionAlgorithm NO_IMAGE

MORPHO_NO_COMPRESS

public static final CompressionAlgorithm MORPHO_NO_COMPRESS
No image compression is applied.


MORPHO_COMPRESS_V1

public static final CompressionAlgorithm MORPHO_COMPRESS_V1
This compression algorithm is recommended when the device is connected by a RS232 port.


MORPHO_COMPRESS_WSQ

public static final CompressionAlgorithm MORPHO_COMPRESS_WSQ
WSQ image compression (Wavelets Scalar Quantization algorithm) is applied.

Method Detail

values

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

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

valueOf

public static CompressionAlgorithm 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 name
java.lang.NullPointerException - if the argument is null

getCode

public int getCode()
Returns:
Code compression algorithm code

getLabel

public java.lang.String getLabel()
Returns:
Label compression algorithm label

getExtension

public java.lang.String getExtension()
Returns:
Extension compression algorithm extension

GetCompressionAlgorithm

public static CompressionAlgorithm GetCompressionAlgorithm(int firmwareCompressionAlgorithm)
Parameters:
firmwareCompressionAlgorithm - firmware Compression Algorithm
Returns:
CompressionAlgorithm Compression Algorithm.

getValue

protected static CompressionAlgorithm getValue(int id)
Parameters:
id -
Returns:
CompressionAlgorithm