Examples of ExportCsvStreamer


Examples of com.serotonin.m2m2.vo.export.ExportCsvStreamer

        // Stream the content.
        response.setContentType("text/csv");

        Translations translations = Common.getTranslations();
        if (content == CONTENT_REPORT) {
            ExportCsvStreamer creator = new ExportCsvStreamer(response.getWriter(), translations);
            if(Common.databaseProxy.getNoSQLProxy() == null)
              reportDao.reportInstanceDataSQL(instanceId, creator);
            else
              reportDao.reportInstanceDataNoSQL(instanceId, creator);
        }
View Full Code Here

Examples of com.serotonin.m2m2.vo.export.ExportCsvStreamer

            this.end = end;
            this.imageWidth = imageWidth * 10;
            try {
                if (createExportFile) {
                    exportFile = File.createTempFile("tempCSV", ".csv");
                    exportCsvStreamer = new ExportCsvStreamer(new PrintWriter(new FileWriter(exportFile)), translations);
                }
            }
            catch (IOException e) {
                LOG.error("Failed to create temp file", e);
            }
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.