List of usage examples for java.util AbstractList toString
public String toString()
From source file:eu.linda.analytics.formats.TXTOutputFormat.java
@Override public void exportData(Analytics analytics, AbstractList dataToExport) { if (dataToExport.size() != 0) { helpfulFuncions.nicePrintMessage("Export to TXT"); String[] splitedSourceFileName = analytics.getDocument().split("\\."); String targetFileName = (splitedSourceFileName[0] + "_" + analytics.getAlgorithm_name() + "_resultdocument.txt").replace("datasets", "results"); String targetFileNameFullPath = Configuration.docroot + targetFileName; helpfulFuncions.saveFile(targetFileNameFullPath, dataToExport.toString()); connectionController.updateLindaAnalytics(targetFileName, "resultdocument", analytics.getId()); connectionController.updateLindaAnalyticsVersion(analytics.getVersion(), analytics.getId()); } else {/*from w ww . ja va2 s .c o m*/ helpfulFuncions.nicePrintMessage("There are no data to be exported to TXT"); if (!analytics.getResultdocument().equalsIgnoreCase("")) { helpfulFuncions.cleanPreviousInfo(analytics); } } }