All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jmrtd.lds.DG7File Maven / Gradle / Ivy

There is a newer version: 0.7.42
Show newest version
/*
 * JMRTD - A Java API for accessing machine readable travel documents.
 *
 * Copyright (C) 2006 - 2014  The JMRTD team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 *
 * $Id: DG7File.java 1559 2014-11-14 12:46:26Z martijno $
 */

package org.jmrtd.lds;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

/**
 * File structure for the EF_DG7 file.
 * 
 * @author Martijn Oostdijk ([email protected])
 * 
 * @version $Revision: 1559 $
 */
public class DG7File extends DisplayedImageDataGroup {

	private static final long serialVersionUID = 7189545112850471359L;

	/**
	 * Constructs a new file from a list of displayed images.
	 * 
	 * @param images the displayed images, all of which should be of type Signature or mark
	 */
	public DG7File(List images) {
		super(EF_DG7_TAG, images, DisplayedImageInfo.DISPLAYED_SIGNATURE_OR_MARK_TAG);
	}

	/**
	 * Constructs a new file from binary representation.
	 * 
	 * @param inputStream an input stream
	 * 
	 * @throws IOException on error reading input stream
	 */
	public DG7File(InputStream inputStream) throws IOException {
		super(EF_DG7_TAG, inputStream);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy