- java.lang.Object
-
- java.lang.Enum<TemplateFormat>
-
- com.machinezoo.fingerprintio.TemplateFormat
-
- All Implemented Interfaces:
-
Serializable
,Comparable<TemplateFormat>
@DraftApi("Format cannot be an enum, because it can have parameters. It must be an interface.") public enum TemplateFormat extends Enum<TemplateFormat>
Fingerprint template format. Only supported template formats are included in thisenum
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANSI_378_2004
ANSI 378-2004 template.ANSI_378_2009
ANSI 378-2009 template.ANSI_378_2009_AM1
ANSI 378-2009/AM1 template.ISO_19794_2_2005
ISO 19794-2:2005 template.ISO_19794_2_2011
ISO 19794-2:2011 template.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TemplateFormat
identify(byte[] template)
Detects template format used to encode provided template.static TemplateFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static TemplateFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANSI_378_2004
public static final TemplateFormat ANSI_378_2004
ANSI 378-2004 template. The template can be parsed byAnsi378v2004Template
.- See Also:
- ANSI INCITS 378-2004 Summary
-
ANSI_378_2009
public static final TemplateFormat ANSI_378_2009
ANSI 378-2009 template. The template can be parsed byAnsi378v2009Template
.- See Also:
- ANSI INCITS 378-2009 Summary
-
ANSI_378_2009_AM1
public static final TemplateFormat ANSI_378_2009_AM1
ANSI 378-2009/AM1 template. The template can be parsed byAnsi378v2009Am1Template
.- See Also:
- ANSI INCITS 378-2009/AM 1 Summary
-
ISO_19794_2_2005
public static final TemplateFormat ISO_19794_2_2005
ISO 19794-2:2005 template. The template can be parsed byIso19794p2v2005Template
.- See Also:
- ISO/IEC 19794-2:2005 Summary
-
ISO_19794_2_2011
public static final TemplateFormat ISO_19794_2_2011
ISO 19794-2:2011 template. The template can be parsed byIso19794p2v2011Template
.- See Also:
- ISO/IEC 19794-2:2011 Summary
-
-
Method Detail
-
values
public static TemplateFormat[] 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 (TemplateFormat c : TemplateFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TemplateFormat valueOf(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:
-
IllegalArgumentException
- if this enum type has no constant with the specified name -
NullPointerException
- if the argument is null
-
identify
public static TemplateFormat identify(byte[] template)
Detects template format used to encode provided template.- Parameters:
-
template
- serialized template in unknown format - Returns:
-
format of the template or
null
if template's format is not supported
-
-