@@ -0,0 +1,2539 @@
+/**%0A * Copyright %C2%A9 2011-2012 EMBL - European Bioinformatics Institute%0A * %0A * Licensed under the Apache License, Version 2.0 (the %22License%22); %0A * you may not use this file except in compliance with the License.  %0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage uk.ac.ebi.generic.util;%0A%0Aimport org.apache.poi.xssf.usermodel.*;%0Aimport org.apache.poi.ss.util.CellRangeAddress;%0Aimport org.apache.poi.ss.usermodel.*;%0Aimport org.apache.poi.hssf.usermodel.HSSFWorkbook;%0A%0Aimport java.util.Map;%0Aimport java.util.HashMap;%0Aimport java.io.FileOutputStream;%0A%0A/**%0A* Creating spreadsheet using Apache POI.%0A* code modified from Apache POI timesheet example%0A*/%0A%0Apublic class ExcelWorkBook %7B%0A%0A%09Workbook wb = null;%0A%09private String%5B%5D titles = null;%0A%09private Object%5B%5D%5B%5D tableData = null;%0A%09private String sheetTitle = null;%0A%09%0A%09public ExcelWorkBook(String%5B%5D titles, Object%5B%5D%5B%5D tableData, String sheetTitle) throws Exception %7B%0A        %0A%09%09this.titles = titles;%0A%09%09this.tableData = tableData;%09%0A%09%09this.sheetTitle = sheetTitle;%0A%09%09%0A%09%09// create new workbook%0A%09%09this.wb = new HSSFWorkbook();%0A%0A%09%09// create new sheet%0A%09%09Sheet sheet = wb.createSheet(sheetTitle); // do not exceed 31 characters%0A%09%09PrintSetup printSetup = sheet.getPrintSetup();%0A%09%09printSetup.setLandscape(true);%0A%09%09sheet.setFitToPage(true);%0A%09%09sheet.setHorizontallyCenter(true);%0A%09%09%09%09%0A    %09//header row%0A    %09Row headerRow = sheet.createRow(0);%0A    %09//headerRow.setHeightInPoints(40);%0A    %09Cell headerCell;%0A    %09for (int i = 0; i %3C titles.length; i++) %7B%0A    %09%09headerCell = headerRow.createCell(i);%0A    %09%09headerCell.setCellValue(titles%5Bi%5D);%0A        %09//headerCell.setCellStyle(styles.get(%22header%22));%0A    %09%7D%0A%0A    %09// data rows%0A    %09// Create a row and put some cells in it. Rows are 0 based.%0A    %09// Then set value for that created cell%0A    %09for (int i=0; i%3CtableData.length; i++) %7B%0A    %09%09Row row = sheet.createRow(i+1);  // data starts from row 1%09 %09%09%0A    %09%09for (int j = 0; j %3C tableData%5Bi%5D.length; j++) %7B  %0A    %09%09%09Cell cell = row.createCell(j);   %0A    %09%09%09cell.setCellValue((String)tableData%5Bi%5D%5Bj%5D);  %0A    %09%09%09System.out.println((String)tableData%5Bi%5D%5Bj%5D);%0A    %09%09%7D%0A    %09%7D    %0A%09%7D%0A%0A%09public Workbook fetchWorkBook() %7B%0A%09%09return this.wb;%0A%09%7D%09%0A%7D

Change the licence information export table as csv/excel stuff