public class ExcelPoiFactory extends Object
| Constructor and Description |
|---|
ExcelPoiFactory() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.poi.ss.usermodel.CellStyle |
newCellStyle(org.apache.poi.ss.usermodel.Workbook workbook,
String fontName,
short boldweight,
short height)
Creates a new CellStyle from the given parameters.
|
static org.apache.poi.ss.usermodel.CellStyle |
newDateCellStyle(org.apache.poi.ss.usermodel.Workbook workbook,
String dateFormat)
Creates a new CellStyle with the given date format.
|
static org.apache.poi.ss.usermodel.Font |
newFont(org.apache.poi.ss.usermodel.Workbook workbook,
String fontName,
short boldweight,
short height)
Creates a new font from the given parameters.
|
static org.apache.poi.ss.usermodel.Workbook |
newHSSFWorkbook(File file)
Creates a new HSSFWorkbook from the given file.
|
static org.apache.poi.ss.usermodel.Workbook |
newHSSFWorkbook(String pathname)
Creates a new HSSFWorkbook from the given file name.
|
static org.apache.poi.ss.usermodel.Sheet |
newSheet(org.apache.poi.ss.usermodel.Workbook workbook,
String name)
Creates a new Sheet with the given name.
|
static org.apache.poi.ss.usermodel.Workbook |
newXSSFWorkbook(File file)
Creates a new HSSFWorkbook from the given file.
|
static org.apache.poi.ss.usermodel.Workbook |
writeWorkbook(org.apache.poi.ss.usermodel.Workbook workbook,
File file)
Writes the given Workbook to the given file.
|
public static org.apache.poi.ss.usermodel.CellStyle newCellStyle(org.apache.poi.ss.usermodel.Workbook workbook,
String fontName,
short boldweight,
short height)
workbook - the workbookfontName - the font nameboldweight - the boldweightheight - the heightpublic static org.apache.poi.ss.usermodel.CellStyle newDateCellStyle(org.apache.poi.ss.usermodel.Workbook workbook,
String dateFormat)
workbook - the workbookdateFormat - the date formatpublic static org.apache.poi.ss.usermodel.Font newFont(org.apache.poi.ss.usermodel.Workbook workbook,
String fontName,
short boldweight,
short height)
workbook - the workbookfontName - the font nameboldweight - the boldweightheight - the heightpublic static org.apache.poi.ss.usermodel.Workbook newHSSFWorkbook(File file) throws IOException
file - the file nameIOException - Signals that an I/O exception has occurred.public static org.apache.poi.ss.usermodel.Workbook newHSSFWorkbook(String pathname) throws IOException
pathname - the file nameIOException - Signals that an I/O exception has occurred.public static org.apache.poi.ss.usermodel.Sheet newSheet(org.apache.poi.ss.usermodel.Workbook workbook,
String name)
Note that sheet name is Excel must not exceed 31 characters and must not contain any of the any of the following characters:
workbook - the workbookname - the namepublic static org.apache.poi.ss.usermodel.Workbook newXSSFWorkbook(File file) throws IOException
file - the file nameIOException - Signals that an I/O exception has occurred.public static org.apache.poi.ss.usermodel.Workbook writeWorkbook(org.apache.poi.ss.usermodel.Workbook workbook,
File file)
throws IOException
workbook - the workbookfile - the fileIOException - Signals that an I/O exception has occurred.Copyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.