com.griaule.grFinger
Class FingerprintTemplate

java.lang.Object
  extended by com.griaule.grFinger.FingerprintTemplate
All Implemented Interfaces:
Serializable

public class FingerprintTemplate
extends Object
implements Serializable

This class represents a fingerprint template. A template is where the fingerprint information are kept.

See Also:
Serialized Form

Field Summary
static int GR_BAD_QUALITY
          This means that the image quality is bad.
static int GR_HIGH_QUALITY
          This means that the image quality is high.
static int GR_IGNORED_QUALITY
          This means that the image quality is unknown.
static int GR_MEDIUM_QUALITY
          This means that the image quality is medium.
 
Constructor Summary
FingerprintTemplate(byte[] tpt, int tptSize)
          Creates a new fingerprint template without image quality descriptor.
FingerprintTemplate(byte[] tpt, int tptSize, int imageQuality)
          Creates a new fingerprint template with image quality descriptor.
 
Method Summary
 byte[] getData()
          Get a byte array with template data.
 int getImageQuality()
          Returns the image quality descriptor.
 int getSize()
          Get the template size in bytes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GR_IGNORED_QUALITY

public static final int GR_IGNORED_QUALITY
This means that the image quality is unknown.

See Also:
Constant Field Values

GR_BAD_QUALITY

public static final int GR_BAD_QUALITY
This means that the image quality is bad.

See Also:
Constant Field Values

GR_MEDIUM_QUALITY

public static final int GR_MEDIUM_QUALITY
This means that the image quality is medium.

See Also:
Constant Field Values

GR_HIGH_QUALITY

public static final int GR_HIGH_QUALITY
This means that the image quality is high.

See Also:
Constant Field Values
Constructor Detail

FingerprintTemplate

public FingerprintTemplate(byte[] tpt,
                           int tptSize)
Creates a new fingerprint template without image quality descriptor.

Parameters:
tpt - The template data as a byte array.
tptSize - The template size.

FingerprintTemplate

public FingerprintTemplate(byte[] tpt,
                           int tptSize,
                           int imageQuality)
Creates a new fingerprint template with image quality descriptor.

Parameters:
tpt - The template data as a byte array.
tptSize - The template size.
imageQuality - The image quality.
Method Detail

getData

public byte[] getData()
Get a byte array with template data.

Returns:
Returns the template data as a byte array.

getImageQuality

public int getImageQuality()
Returns the image quality descriptor.

Returns:
GR_IGNORED_QUALITY, GR_BAD_QUALITY, GR_MEDIUM_QUALITY or GR_HIGH_QUALITY static fields.

getSize

public int getSize()
Get the template size in bytes.

Returns:
Returns the template size in bytes.