Class EidFedictHandler

java.lang.Object
be.gaudry.model.eid.file.EidAbstractHandler
be.gaudry.model.eid.file.EidFedictHandler
All Implemented Interfaces:
IEidHandler

public class EidFedictHandler extends EidAbstractHandler
Author:
Steph GAUDRY
  • Constructor Details

    • EidFedictHandler

      public EidFedictHandler()
  • Method Details

    • save

      public void save(File file, VirtualBeID virtualBeID) throws IOException
      Exports the virtual BEID to the given XML-file. \nThis exports only the visual data to the BEID GUI. So for example the hash of the picture of the holder is not exported.
      Parameters:
      file - Where to save the informations
      Throws:
      IOException
    • load

      public VirtualBeID load(File file) throws ParseException, org.dom4j.DocumentException
      Description copied from interface: IEidHandler
      Loads data from the given file to initialize the VirtualBeID.
      Parameters:
      file - is the file to read
      Returns:
      a VirtualBeID object containing all the BeID card data
      Throws:
      ParseException - when the dates couldn't be parsed correctly
      org.dom4j.DocumentException - when the document isn't well-formed