oscon2006.common
Class XlsBuilder

java.lang.Object
  extended by oscon2006.common.XlsBuilder

public class XlsBuilder
extends java.lang.Object

Author:
Sean C. Sullivan

Constructor Summary
XlsBuilder()
           
 
Method Summary
 byte[] build()
           
 void build(java.io.OutputStream out)
           
 void build(java.lang.String filename)
           
protected  HSSFWorkbook buildWorkbook()
           
protected  HSSFWorkbook buildWorkbook(CSVReader reader)
           
protected  HSSFCell createCell(int index)
           
 int[] getColumnWidths()
           
protected  java.lang.Object getData()
           
protected  HSSFCellStyle getDefaultCellStyle()
           
protected  HSSFRow newRow()
           
protected  HSSFSheet newSheet(java.lang.String name)
           
 void setColumnWidths(int... widths)
           
 void setData(java.lang.Object data)
           
 void setDefaultCellStyle(HSSFCellStyle style)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XlsBuilder

public XlsBuilder()
Method Detail

setColumnWidths

public void setColumnWidths(int... widths)

getColumnWidths

public int[] getColumnWidths()

newRow

protected HSSFRow newRow()

newSheet

protected HSSFSheet newSheet(java.lang.String name)

createCell

protected HSSFCell createCell(int index)

build

public void build(java.lang.String filename)
           throws java.io.IOException
Throws:
java.io.IOException

build

public byte[] build()
             throws java.io.IOException
Throws:
java.io.IOException

build

public void build(java.io.OutputStream out)
           throws java.io.IOException
Throws:
java.io.IOException

getData

protected java.lang.Object getData()

buildWorkbook

protected HSSFWorkbook buildWorkbook()
                              throws java.io.IOException
Throws:
java.io.IOException

buildWorkbook

protected HSSFWorkbook buildWorkbook(CSVReader reader)
                              throws java.io.IOException
Throws:
java.io.IOException

setDefaultCellStyle

public void setDefaultCellStyle(HSSFCellStyle style)

getDefaultCellStyle

protected HSSFCellStyle getDefaultCellStyle()

setData

public void setData(java.lang.Object data)
Parameters:
data - a java.sql.ResultSet or javax.swing.table.TableModel


Copyright © 2006 oscon2006.sourceforge.net. All Rights Reserved.