Package de.chris_soft.fyllgen.utilities

Examples of de.chris_soft.fyllgen.utilities.IOTools


  /**
   * Erzeugt eine ZIP-datei mit allen Familiendaten (.fgf-Datei und Images).
   */
  private void writeToZip(String filename) {
    IOTools zip = new IOTools();
    List<File> files = new ArrayList<File>();
    List<String> names = new ArrayList<String>();

    files.add(null);
    names.add("family.fgf");
    files.add(null);
    names.add(Statics.OPTIONS_PROPERTIES);

    List<File> images = getAllImages();
    new File("images").mkdir();
    for (File image : images) {
      files.add(image);
      names.add("images/" + image.getName());
    }

    // Noch als ZIP-Datei wegschreiben.
    try {
      zip.writeZipFile(filename, files, names, this);
    }
    catch (IOException exception) {
      exception.printStackTrace();
      SwtUtilities.sayError(GUI.instance.shell, "Fehler beim Schreiben der ZIP-Datei mit den Familiendaten!");
    }
View Full Code Here


    // Bisherige Personen l�schen.
    family.persons.clear();
    family.imagePersonMap.clear();

    // ZIP-Datei �ffnen und verarbeiten (einlesen).
    IOTools zt = new IOTools();
    zt.readZipFile(filename, this);
    family.loader.tellAboutUnlocatedImages();

    // Unn�tige Backups l�schen.
    BackupRemoval.start(filename);
  }
View Full Code Here

TOP

Related Classes of de.chris_soft.fyllgen.utilities.IOTools

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.