Examples of DtausDateiParser


Examples of de.jost_net.OBanToo.Dtaus.DtausDateiParser

       */
      String encoding = settings.getString("dtaus.encoding","ISO-8859-1");
     
      Logger.info("dtaus tolerance: " + toleranz);
      Logger.info("dtaus encoding : " + encoding);
      DtausDateiParser parser = new DtausDateiParser(is,toleranz,encoding);
     
      int files = parser.getAnzahlLogischerDateien();
     
      for (int i=0;i<files;++i)
      {
        monitor.setPercentComplete(0);
       
        monitor.setStatusText(i18n.tr("Importiere logische Datei Nr. {0}",""+(i+1)));
       
        parser.setLogischeDatei(i+1);
       
        // Im E-Satz steht die Anzahl der Datensaetze. Die brauchen wir, um
        // den Fortschrittsbalken mit sinnvollen Daten fuettern zu koennen.
        ASatz a = parser.getASatz();
        ESatz e = parser.getESatz();

        double factor = 100d / e.getAnzahlDatensaetze();
        int count = 0;
        int success = 0;
        int error = 0;
       
        DBService service = de.willuhn.jameica.hbci.Settings.getDBService();

        CSatz c = null;
        while ((c = parser.next()) != null)
        {
          try
          {
            // Mit diesem Factor sollte sich der Fortschrittsbalken
            // bis zum Ende der DTAUS-Datei genau auf 100% bewegen
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.