uk.ac.ebi.mapper.util.excel
Class CSVWriter

java.lang.Object
  extended by uk.ac.ebi.mapper.util.excel.CSVWriter

public class CSVWriter
extends Object

User: rcote Date: 22-Jun-2007 Time: 17:19:41 $Id: CSVWriter.java,v 1.8 2010/04/20 16:04:25 rcote Exp $


Field Summary
static String CSV_EXTENSION
           
 
Constructor Summary
CSVWriter()
           
 
Method Summary
 void writeCSVFile(Map entries, Collection accessions, TreeSet<String> searchDatabases, TreeSet<String> collapsedDatabases, boolean showUPI, PrintWriter out)
          writes csv output to a given printwriter
 String writeCSVFile(Map entries, Collection accessions, TreeSet searchDatabases, TreeSet collapsedDatabases, boolean showUPI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CSV_EXTENSION

public static final String CSV_EXTENSION
See Also:
Constant Field Values
Constructor Detail

CSVWriter

public CSVWriter()
Method Detail

writeCSVFile

public String writeCSVFile(Map entries,
                           Collection accessions,
                           TreeSet searchDatabases,
                           TreeSet collapsedDatabases,
                           boolean showUPI)
                    throws IOException
Throws:
IOException

writeCSVFile

public void writeCSVFile(Map entries,
                         Collection accessions,
                         TreeSet<String> searchDatabases,
                         TreeSet<String> collapsedDatabases,
                         boolean showUPI,
                         PrintWriter out)
                  throws IOException
writes csv output to a given printwriter

Parameters:
entries - - a map containing the accession as s key and either a list of UPEntries or an ErrorHandler object as a value
accessions - - a collection of searched accessions
searchDatabases - - a full list of search databases
collapsedDatabases - - the collapsed list of search databases - this will be the header of the CVS file
showUPI - - a boolean indicating if the UPIs should also be displayed
out - - the print writer where the output is being written
Throws:
IOException


Copyright © 2011. All Rights Reserved.