Examples of CsvExporter


Examples of com.google.refine.exporters.CsvExporter

    //System Under Test
    CsvExporter SUT;

    @BeforeMethod
    public void SetUp(){
        SUT = new CsvExporter('\t');//new TsvExporter();
        writer = new StringWriter();
        project = new Project();
        engine = new Engine(project);
        options = mock(Properties.class);
    }
View Full Code Here

Examples of com.google.refine.exporters.CsvExporter

    // System Under Test
    CsvExporter SUT;

    @BeforeMethod
    public void SetUp() {
        SUT = new CsvExporter();
        writer = new StringWriter();
        project = new Project();
        options = mock(Properties.class);
    }
View Full Code Here

Examples of com.google.refine.exporters.CsvExporter

    //System Under Test
    CsvExporter SUT;

    @BeforeMethod
    public void SetUp(){
        SUT = new CsvExporter();
        writer = new StringWriter();
        project = new Project();
        engine = new Engine(project);
        options = mock(Properties.class);
    }
View Full Code Here

Examples of com.google.refine.exporters.CsvExporter

            Properties params = getRequestParameters(request);
           
            String format = params.getProperty("format");
            Exporter exporter = ExporterRegistry.getExporter(format);
            if (exporter == null) {
                exporter = new CsvExporter('\t');
            }
           
            String contentType = params.getProperty("contentType");
            if (contentType == null) {
                contentType = exporter.getContentType();
View Full Code Here

Examples of com.jbidwatcher.ui.table.CSVExporter

    _targets[0].setActive(true);
    _targets[1].setActive(true);

    _print = new JPrintable(_table);
    _export = new CSVExporter(_table);
    _table.setDefaultRenderer(String.class, _myRenderer);
    _table.setDefaultRenderer(Icon.class, _myRenderer);

    mPanel = new JPanel();
    mPanel.setLayout(new BorderLayout());
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.util.CSVExporter

    if(!outputDir.exists())
      outputDir.mkdirs();
   
    // initialize writers
    htmlExporter = new HTMLExporter(outputDir);
    csvExporter = new CSVExporter(outputDir);
   
    // reset stat counters
    processCount = 0;
    totalTime = 0;
   
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.util.CSVExporter

    coder.setHandleNegation(handleNegation);
    //coder.setProcessFilter(NobleCoder.FILTER_DEID|NobleCoder.FILTER_HEADER);
   
    // initialize writers
    htmlExporter = new HTMLExporter(outputDir);
    csvExporter = new CSVExporter(outputDir);
   
    for(int i=0;i<files.size();i++){
      progress("processing report ("+(processCount+1)+") "+files.get(i).getName()+" ... \n");
      Document doc = coder.process(files.get(i));
      processTime += coder.getProcessTime();
View Full Code Here

Examples of honeycrm.client.csv.CsvExporter

    bar.setModule("Contact");
    bar.set("name", "Bar");
    list.add(foo);
    list.add(bar);

    final CsvExporter exporter = new CsvExporter();
    final String csv = exporter.export(list);

    assertNotNull(csv);

    final String[] lines = csv.split(AbstractCsv.LINE_SEP);
    assertEquals(list.size(), lines.length);
View Full Code Here

Examples of name.abuchen.portfolio.datatransfer.CSVExporter

        try
        {
            // account transactions
            if (exportItem == AccountTransaction.class)
            {
                new CSVExporter().exportAccountTransactions(file, client.getAccounts());
            }
            else if (exportClass == AccountTransaction.class)
            {
                new CSVExporter().exportAccountTransactions(file, (Account) exportItem);
            }

            // portfolio transactions
            else if (exportItem == PortfolioTransaction.class)
            {
                new CSVExporter().exportPortfolioTransactions(file, client.getPortfolios());
            }
            else if (exportClass == PortfolioTransaction.class)
            {
                new CSVExporter().exportPortfolioTransactions(file, (Portfolio) exportItem);
            }

            // master data
            else if (exportItem == Security.class)
            {
                new CSVExporter().exportSecurityMasterData(new File(file, Messages.ExportWizardSecurityMasterData
                                + ".csv"), client.getSecurities()); //$NON-NLS-1$
            }
            else if (exportClass == Security.class)
            {
                if (Messages.ExportWizardSecurityMasterData.equals(exportItem))
                    new CSVExporter().exportSecurityMasterData(file, client.getSecurities());
                else if (Messages.ExportWizardMergedSecurityPrices.equals(exportItem))
                    new CSVExporter().exportMergedSecurityPrices(file, client.getSecurities());
                else if (Messages.ExportWizardAllTransactionsAktienfreundeNet.equals(exportItem))
                    new AktienfreundeNetExporter().exportAllTransactions(file, client);
            }

            // historical quotes
            else if (exportItem == SecurityPrice.class)
            {
                new CSVExporter().exportSecurityPrices(file, client.getSecurities());
            }
            else if (exportClass == SecurityPrice.class)
            {
                new CSVExporter().exportSecurityPrices(file, (Security) exportItem);
            }
            else
            {
                throw new UnsupportedOperationException(MessageFormat.format(Messages.ExportWizardUnsupportedExport,
                                exportClass, exportItem));
View Full Code Here

Examples of nl.lxtreme.ols.util.ExportUtils.CsvExporter

   */
  private void storeToCsvFile( final File aFile, final JTAGDataSet aDataSet )
  {
    try
    {
      final CsvExporter exporter = ExportUtils.createCsvExporter( aFile );

      exporter.setHeaders( "index", "time", "state", "TDI data", "TDO data" );

      final List<JTAGData> dataSet = aDataSet.getData();
      for ( int i = 0; i < dataSet.size(); i++ )
      {
        final JTAGData data = dataSet.get( i );

        final String time = Unit.Time.format( aDataSet.getTime( data.getStartSampleIndex() ) );
        final String event = data.isEvent() ? data.getEventName() : null;

        BigInteger tdiData = null;
        BigInteger tdoData = null;

        // Try to coalesce equal timestamps...
        if ( ( i + 1 ) < dataSet.size() )
        {
          final JTAGData next = dataSet.get( i + 1 );
          if ( next.getStartSampleIndex() == data.getStartSampleIndex() )
          {
            tdiData = ( BigInteger )( next.isTdiData() ? next.getDataValue() : data.getDataValue() );
            tdoData = ( BigInteger )( next.isTdoData() ? next.getDataValue() : data.getDataValue() );
            // Make sure to skip this entry in the next iteration...
            i++;
          }
        }
       
        if ( ( tdiData == null ) && data.isTdiData() )
        {
          tdiData = ( BigInteger )data.getDataValue();
          tdoData = null;
        }
        else if ( ( tdoData == null ) && data.isTdoData() )
        {
          tdiData = null;
          tdoData = ( BigInteger )data.getDataValue();
        }
       
        final String tdiDataValue = tdiData != null ? "0x" + tdiData.toString( 16 ) : null;
        final String tdoDataValue = tdoData != null ? "0x" + tdoData.toString( 16 ) : null;

        exporter.addRow( Integer.valueOf( i ), time, event, tdiDataValue, tdoDataValue );
      }

      exporter.close();
    }
    catch ( final IOException exception )
    {
      // Make sure to handle IO-interrupted exceptions properly!
      if ( !HostUtils.handleInterruptedException( exception ) )
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.