public class XLSWriter extends Object
Constructor and Description |
---|
XLSWriter() |
Modifier and Type | Method and Description |
---|---|
void |
writeExcelColumn(Set<String> elements,
String filename)
Create an Excel file with a column with all elements of a set
|
void |
writeExcelTwoColumns(Map<String,String> elements,
String filename)
Create an Excel file with two columns with all elements of a map
|
public void writeExcelColumn(Set<String> elements, String filename) throws IOException, jxl.write.biff.RowsExceededException, jxl.write.WriteException
elements
- rows of the columnfilename
- the full path name of the output fileIOException
- IOExceptionjxl.write.biff.RowsExceededException
- RowsExceededExceptionjxl.write.WriteException
- WriteExceptionpublic void writeExcelTwoColumns(Map<String,String> elements, String filename) throws IOException, jxl.write.biff.RowsExceededException, jxl.write.WriteException
elements
- data map to put in the excel filefilename
- the full path name of the output fileIOException
- IOExceptionjxl.write.biff.RowsExceededException
- RowsExceededExceptionjxl.write.WriteException
- WriteExceptionCopyright © 2016. All rights reserved.