Package com.Ostermiller.util

Examples of com.Ostermiller.util.CSVPrinter


    try {
      out = new FileOutputStream(outputFile);
      if (isExcel) {
        printer = new ExcelCSVPrinter(out);
      } else {
        printer = new CSVPrinter(out);
      }
      printer.changeDelimiter(delimiter);
      DataConnection dc = DataConnection.getInstance(view);
      if (dc == null || !dc.bIsConnectionMade) {
        return;
View Full Code Here


        csvFile.createNewFile();

        // Create the printer
        CSVPrint csvPrint = null;
        if("UNIX".equals(style)) {
          csvPrint = new CSVPrinter(new OutputStreamWriter(new FileOutputStream(csvFile), "UTF-8"), '#', quoteCharacter, seperator, false, true);
        } else if("EXCEL".equals(style)) {
          csvPrint = new ExcelCSVPrinter(new OutputStreamWriter(new FileOutputStream(csvFile), "UTF-8"), quoteCharacter, seperator, false, true);
        }
        nameCsvPrintMap.put(entry.getParameterMap().get(NAME), csvPrint);
View Full Code Here

   *             if there are i/o problems.
   */
  private static void exportAdductsToFile(final File file,
      final AdductType[] adducts) throws IOException {

    final CSVPrinter writer = new CSVPrinter(new FileWriter(file));
    for (final AdductType adduct : adducts) {

      writer.writeln(new String[]{adduct.getName(),
          String.valueOf(adduct.getMassDifference())});
    }
  }
View Full Code Here

TOP

Related Classes of com.Ostermiller.util.CSVPrinter

Copyright © 2018 www.massapicom. 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.