oscon2006.common
Class CsvBuilder

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

public class CsvBuilder
extends java.lang.Object


Constructor Summary
CsvBuilder()
           
 
Method Summary
 byte[] build()
           
 void build(java.io.OutputStream out)
           
 java.io.File build(java.lang.String csvFilename)
           
 java.lang.Object getData()
           
protected  java.lang.String[] getRowValues(HSSFRow r)
           
protected  java.lang.String getValue(HSSFCell cell)
           
protected  void processHSSFSheet(HSSFSheet sheet, java.lang.String sheetName, CSVWriter writer)
           
protected  void processHSSFWorkbook(HSSFWorkbook workbook, java.io.OutputStream out)
           
protected  void processResultSet(java.sql.ResultSet rs, java.io.OutputStream out)
           
 void setData(java.lang.Object obj)
           
 void setTargetWorksheet(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CsvBuilder

public CsvBuilder()
Method Detail

setData

public void setData(java.lang.Object obj)
Parameters:
wb -
See Also:
setTargetWorksheet(String)

setTargetWorksheet

public void setTargetWorksheet(java.lang.String value)

build

public java.io.File build(java.lang.String csvFilename)
                   throws java.io.IOException
Throws:
java.io.IOException

getData

public java.lang.Object getData()

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

processHSSFWorkbook

protected void processHSSFWorkbook(HSSFWorkbook workbook,
                                   java.io.OutputStream out)
                            throws java.io.IOException
Throws:
java.io.IOException

processHSSFSheet

protected void processHSSFSheet(HSSFSheet sheet,
                                java.lang.String sheetName,
                                CSVWriter writer)
                         throws java.io.IOException
Throws:
java.io.IOException

processResultSet

protected void processResultSet(java.sql.ResultSet rs,
                                java.io.OutputStream out)
                         throws java.io.IOException
Throws:
java.io.IOException

getRowValues

protected java.lang.String[] getRowValues(HSSFRow r)

getValue

protected java.lang.String getValue(HSSFCell cell)


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