Example usage for java.util AbstractList toString

List of usage examples for java.util AbstractList toString

Introduction

In this page you can find the example usage for java.util AbstractList toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

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);
        }
    }
}