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

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

public class ExcelWriter
extends Object

User: rcote Date: 03-May-2007 Time: 17:45:10 $Id: ExcelWriter.java,v 1.9 2010/04/20 16:04:25 rcote Exp $


Field Summary
static String XLS_EXTENSION
           
 
Constructor Summary
ExcelWriter()
           
 
Method Summary
 void writeExcelWorkbookFile(Map entries, Collection accessions, TreeSet<String> searchDatabases, TreeSet<String> collapsedDatabases, boolean showUPI, OutputStream out)
          writes csv output to a given printwriter
 String writeExcelWorkbookFile(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

XLS_EXTENSION

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

ExcelWriter

public ExcelWriter()
Method Detail

writeExcelWorkbookFile

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

writeExcelWorkbookFile

public void writeExcelWorkbookFile(Map entries,
                                   Collection accessions,
                                   TreeSet<String> searchDatabases,
                                   TreeSet<String> collapsedDatabases,
                                   boolean showUPI,
                                   OutputStream 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
file - - the File object where the file will be written to
Throws:
IOException


Copyright © 2011. All Rights Reserved.