public class XLSUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
autoSizeColumns(org.apache.poi.ss.usermodel.Workbook workbook) |
static int |
getColumnCount(org.apache.poi.ss.usermodel.Sheet sheet) |
static boolean |
isEmpty(org.apache.poi.ss.usermodel.Cell cell) |
static boolean |
isEmpty(org.apache.poi.ss.usermodel.Row row) |
static Object |
resolveCellValue(org.apache.poi.ss.usermodel.Cell cell) |
static Object |
resolveCellValue(org.apache.poi.ss.usermodel.Cell cell,
String emptyMarker,
String nullMarker,
org.databene.commons.Converter<String,?> stringPreprocessor) |
static String |
resolveCellValueAsString(org.apache.poi.ss.usermodel.Cell cell)
Resolves a formula or a normal cell and formats the result as it would be displayed in Excel.
|
static String |
resolveCellValueAsString(org.apache.poi.ss.usermodel.Cell cell,
String emptyMarker,
String nullMarker,
org.databene.commons.Converter<String,?> stringPreprocessor)
Resolves a formula or a normal cell and formats the result as it would be displayed in Excel
|
public static Object resolveCellValue(org.apache.poi.ss.usermodel.Cell cell)
public static Object resolveCellValue(org.apache.poi.ss.usermodel.Cell cell, String emptyMarker, String nullMarker, org.databene.commons.Converter<String,?> stringPreprocessor)
public static String resolveCellValueAsString(org.apache.poi.ss.usermodel.Cell cell)
cell - the cell to resolvepublic static String resolveCellValueAsString(org.apache.poi.ss.usermodel.Cell cell, String emptyMarker, String nullMarker, org.databene.commons.Converter<String,?> stringPreprocessor)
cell - the cell to resolveemptyMarker - the string to interpret as empty fieldnullMarker - the string to interpret as null valuestringPreprocessor - a preprocessor to apply to the raw field valuespublic static void autoSizeColumns(org.apache.poi.ss.usermodel.Workbook workbook)
public static boolean isEmpty(org.apache.poi.ss.usermodel.Row row)
public static boolean isEmpty(org.apache.poi.ss.usermodel.Cell cell)
public static int getColumnCount(org.apache.poi.ss.usermodel.Sheet sheet)
Copyright © 2006–2016 Volker Bergmann. All rights reserved.