|
From: <de...@us...> - 2013-03-20 07:46:35
|
Revision: 8344
http://fudaa.svn.sourceforge.net/fudaa/?rev=8344&view=rev
Author: deniger
Date: 2013-03-20 07:46:29 +0000 (Wed, 20 Mar 2013)
Log Message:
-----------
Removed Paths:
-------------
trunk/soft/fudaa-crue/crue-otfa/src/main/java/org/fudaa/dodico/crue/io/rtfa/RtfaLinesLoader.java
Deleted: trunk/soft/fudaa-crue/crue-otfa/src/main/java/org/fudaa/dodico/crue/io/rtfa/RtfaLinesLoader.java
===================================================================
--- trunk/soft/fudaa-crue/crue-otfa/src/main/java/org/fudaa/dodico/crue/io/rtfa/RtfaLinesLoader.java 2013-03-20 07:45:46 UTC (rev 8343)
+++ trunk/soft/fudaa-crue/crue-otfa/src/main/java/org/fudaa/dodico/crue/io/rtfa/RtfaLinesLoader.java 2013-03-20 07:46:29 UTC (rev 8344)
@@ -1,85 +0,0 @@
-/*
- GPL 2
- */
-package org.fudaa.dodico.crue.io.rtfa;
-
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import java.util.zip.ZipEntry;
-import java.util.zip.ZipFile;
-import org.fudaa.ctulu.CtuluLog;
-import org.fudaa.ctulu.CtuluLogGroup;
-import org.fudaa.dodico.crue.common.BusinessMessages;
-import org.fudaa.dodico.crue.common.io.CrueIOResu;
-import org.fudaa.dodico.crue.io.line.CrueLineLogReaderWriter;
-import org.fudaa.dodico.crue.io.line.CrueLineResultReaderWriter;
-import org.fudaa.dodico.crue.io.otfa.OtfaFileUtils;
-import org.fudaa.dodico.crue.projet.otfa.OtfaCampagneLine;
-import org.fudaa.dodico.crue.projet.otfa.OtfaCampagneLineResultComparaisons;
-
-/**
- *
- * @author Frederic Deniger
- */
-public class RTFALinesLoader {
-
- private final File rtfaZipFile;
-
- public RTFALinesLoader(File rtfaZipFile) {
- this.rtfaZipFile = OtfaFileUtils.getRtfaZipFile(rtfaZipFile);
- }
-
- public CrueIOResu<CtuluLogGroup> loadLogs(OtfaCampagneLine line) {
- CrueIOResu<CtuluLogGroup> res = null;
- CrueLineLogReaderWriter reader = new CrueLineLogReaderWriter(CrueRTFAReaderWriter.LAST_VERSION);
- ZipFile file = null;
- InputStream inputStream = null;
- try {
- file = new ZipFile(rtfaZipFile);
- inputStream = file.getInputStream(new ZipEntry(RTFALines.getCtfaFileName(line)));
- CtuluLog log = new CtuluLog(BusinessMessages.RESOURCE_BUNDLE);
- res = reader.readXML(inputStream, log, null);
- } catch (Exception e) {
- Logger.getLogger(RTFALinesLoader.class.getName()).log(Level.INFO, "message {0}", e);
- } finally {
- if (file != null) {
- try {
- file.close();
- } catch (IOException ex) {
- Logger.getLogger(RTFALinesLoader.class.getName()).log(Level.SEVERE, null, ex);
- }
- }
- }
-
- return res;
-
- }
-
- public CrueIOResu<OtfaCampagneLineResultComparaisons> loadResults(OtfaCampagneLine line) {
- CrueLineResultReaderWriter reader = new CrueLineResultReaderWriter(CrueRTFAReaderWriter.LAST_VERSION);
- CrueIOResu<OtfaCampagneLineResultComparaisons> res = null;
- ZipFile file = null;
- InputStream inputStream = null;
- try {
- file = new ZipFile(rtfaZipFile);
- inputStream = file.getInputStream(new ZipEntry(RTFALines.getRtfaFileName(line)));
- CtuluLog log = new CtuluLog(BusinessMessages.RESOURCE_BUNDLE);
- res = reader.readXML(inputStream, log, null);
- } catch (Exception e) {
- Logger.getLogger(RTFALinesLoader.class.getName()).log(Level.INFO, "message {0}", e);
- } finally {
- if (file != null) {
- try {
- file.close();
- } catch (IOException ex) {
- Logger.getLogger(RTFALinesLoader.class.getName()).log(Level.SEVERE, null, ex);
- }
- }
- }
-
- return res;
- }
-}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|