Skip to content
Snippets Groups Projects
Commit 6bdc3ee2 authored by langella's avatar langella
Browse files

better ods2csv API

git-svn-id: https://subversion.renater.fr/xtandempipeline/trunk@373 b8ef2a07-7df7-436f-90b9-41648038564b
parent 6be66be7
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -27,6 +27,7 @@ import java.io.OutputStream;
import org.apache.log4j.Logger;
import fr.inra.pappso.csv2ods.NumericFormat;
import fr.inra.pappso.csv2ods.Ods2Csv;
import fr.inra.pappso.xtandempipeline.MsException.MSMSException;
......@@ -38,8 +39,11 @@ public class CsvRedundantPeptideOutput extends OdsRedundantPeptideOutput {
public CsvRedundantPeptideOutput(OutputStream outputStream)
throws MSMSException {
ods2csv = new Ods2Csv();
ods2csv.setSinkOutputStream(outputStream);
ods2csv.setNumericFormat(NumericFormat.en);
ods2csv.setSeparator('\t');
try {
odsTable = ods2csv.getOdsDocPipedOutput(outputStream);
odsTable = ods2csv.getOdsDocPipedOutput();
} catch (Exception e) {
String message = "error getting OdsDocPipedOutput "
+ e.getMessage();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment