|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ar.com.epere4.java2excel.excelWritter.ExcelWritter
public class ExcelWritter
This class allows you to print a some
Collections
to an excel file using some
configuration Java2ExcelDtd
.
Constructor Summary | |
---|---|
ExcelWritter()
Default constructor. |
Method Summary | |
---|---|
void |
addReport(java.util.Collection data,
Java2ExcelDtd metaData)
Adds a collection to be printed in the excel workbook represented by this object. |
void |
addReport(java.util.Collection data,
Java2ExcelDtd metaData,
java.lang.String sheetName)
Adds a collection to be printed in the excel workbook represented by this object. |
void |
saveTo(java.io.File outputFile)
Saves the generated excel to the specified outputFile. |
void |
saveTo(java.io.OutputStream outputStream)
Saves the generated excel to the specified outputStream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExcelWritter()
Method Detail |
---|
public void addReport(java.util.Collection data, Java2ExcelDtd metaData)
data
- the collection to be printed in the excel file.metaData
- the configuration info.public void addReport(java.util.Collection data, Java2ExcelDtd metaData, java.lang.String sheetName)
data
- the collection to be printed in the excel file.metaData
- the configuration info.sheetName
- The name for the seet being added to the excel. If null, then
a default name will be used. Sheet name cannot be blank,
greater than 31 chars, or contain any of /\\*?[].public void saveTo(java.io.OutputStream outputStream) throws java.io.IOException
outputStream
- the stream where you want to save the Excel.
java.io.IOException
- if any Input Output problem shows up.public void saveTo(java.io.File outputFile) throws java.io.IOException
outputFile
- the file where you want to save the Excel.
java.io.IOException
- if any Input Output problem shows up.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |