oscon2006.common
Class XlsBuilder
java.lang.Object
oscon2006.common.XlsBuilder
public class XlsBuilder
- extends java.lang.Object
- Author:
- Sean C. Sullivan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XlsBuilder
public XlsBuilder()
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.