List of usage examples for org.apache.poi.hssf.model InternalWorkbook getFormats
public List<FormatRecord> getFormats()
From source file:com.adanac.excel.reader.usermodel.ExcelHSSFDataFormat.java
License:Apache License
/** * Constructs a new data formatter. It takes a workbook to have * access to the workbooks format records. * @param workbook the workbook the formats are tied to. *//*from ww w. j a v a2 s .c o m*/ ExcelHSSFDataFormat(InternalWorkbook workbook) { _workbook = workbook; Iterator<FormatRecord> i = workbook.getFormats().iterator(); while (i.hasNext()) { FormatRecord r = i.next(); ensureFormatsSize(r.getIndexCode()); _formats.set(r.getIndexCode(), r.getFormatString()); } }