View on GitHub

JET - Java EBTS Tools

Easy to use, open source tools for the biometrics community

Download this project as a .zip file Download this project as a tar.gz file

What is JET?

The JET Library is a freely available open-source fully Java EBTS library capable of parsing, editing, and creating EBTS files based upon the legacy (non-XML) implementation of the ANSI/NIST-ITL 1-2011 Standard.

Quick Examples

*More extensive examples can be obtained in the JETExample package within this repository.

Creating a new EBTS File

Ebts ebts = new Ebts();
GenericRecord type2 = new GenericRecord(2);
type2.setValue(18, "LAST,FIRST"); //Typical Name Field
ebts.addRecord(type2);

Parsing an existing EBTS File

EbtsParser parser = new EbtsParser();
Ebts ebtsData = parser.parse("/path/to/ebtsFile");
GenericRecord type1 = (GenericRecord) ebts.getRecordsByType(1).get(0);
System.out.println("The length of my record is:"+type1.getField(1).toString());

Modifying Contents of an EBTS File

//Assume EBTS ebts is created. 
//Move the values from 2.010 (First Name) and 2.011 (Last Name) to 2.018
GenericRecord type2 = (GenericRecord) ebts.getRecordsByType(2).get(0);
String firstName = type2.getField(10).toString();
String lastName = type2.getField(11).toString();
ebts.setValue(18, lastName+","+firstName);
type2.getFields().remove(10);
type2.getFields().remove(11);

Writing out an EBTS File

//Assume existing EBTS ebts structure
EbtsBuilder ebtsBuilder = new EbtsBuilder();
byte [] sample = ebtsBuilder.build(ebts);

String fileName = "testEbts.eft";
File outputFile = new File(fileName);
FileOutputStream fos = new FileOutputStream(outputFile);
BufferedOutputStream bos = new BufferedOutputStream(fos);
bos.write(sample);
bos.close();
System.out.println("Created "+fileName);

Authors and Contributors

The JET Toolset originated thanks to a significant personal time investment from @adamday2. It was later enhanced by a larger team led by @wvucam71.

Contributors:
@adamday2
@wvucam71

Support or Contact

Please contact @adamday2 or @wvucam71 for issues regarding the JET Library.