public interface IWorksheetWriter extends Closeable, Cloneable, Storable
| 限定符和类型 | 方法和说明 |
|---|---|
IWorksheetWriter |
clone()
Clone
|
int |
getColumnLimit()
The Worksheet column limit
|
int |
getRowLimit()
The Worksheet row limit
|
static boolean |
isBigDecimal(Class<?> clazz)
Test if it is a
BigDecimal type |
static boolean |
isBool(Class<?> clazz)
Test if it is a
boolean or Boolean type |
static boolean |
isChar(Class<?> clazz)
Test if it is a
char or Character type |
static boolean |
isDate(Class<?> clazz)
Test if it is a
Date type |
static boolean |
isDateTime(Class<?> clazz)
Test if it is a
Timestamp type |
static boolean |
isDouble(Class<?> clazz)
Test if it is a double-precision floating-point type
|
static boolean |
isFloat(Class<?> clazz)
Test if it is a single-precision floating-point type
|
static boolean |
isInt(Class<?> clazz)
Test if it is a
int, char, byte or short or boxing type |
static boolean |
isLocalDate(Class<?> clazz)
Test if it is a
LocalDate type |
static boolean |
isLocalDateTime(Class<?> clazz)
Test if it is a
LocalDateTime type |
static boolean |
isLocalTime(Class<?> clazz)
Test if it is a
LocalTime type |
static boolean |
isLong(Class<?> clazz)
Test if it is a
long or Long type |
static boolean |
isShort(Class<?> clazz)
Test if it is a
short or Short type |
static boolean |
isString(Class<?> clazz)
Test if it is a
String type |
static boolean |
isTime(Class<?> clazz)
Test if it is a
Time type |
default boolean |
outOfSheet(int row)
TO check rows out of worksheet
|
IWorksheetWriter |
setWorksheet(Sheet sheet)
Return a copy worksheet writer
|
default void |
writeEmptySheet(Path path)
Write a empty worksheet
|
void |
writeTo(Path path,
Supplier<RowBlock> supplier)
Write a row block
|
int getRowLimit()
int getColumnLimit()
void writeTo(Path path, Supplier<RowBlock> supplier) throws IOException
path - the storage pathsupplier - a row-block supplierIOException - if io error occurIWorksheetWriter setWorksheet(Sheet sheet)
sheet - the Sheetdefault void writeEmptySheet(Path path) throws IOException
path - the path to storageIOException - if io error occurdefault boolean outOfSheet(int row)
row - row numberIWorksheetWriter clone()
static boolean isDate(Class<?> clazz)
Date typeclazz - the typestatic boolean isDateTime(Class<?> clazz)
Timestamp typeclazz - the typestatic boolean isInt(Class<?> clazz)
int, char, byte or short or boxing typeclazz - the typestatic boolean isShort(Class<?> clazz)
short or Short typeclazz - the classstatic boolean isLong(Class<?> clazz)
long or Long typeclazz - the typestatic boolean isFloat(Class<?> clazz)
clazz - the typestatic boolean isDouble(Class<?> clazz)
clazz - the typestatic boolean isBool(Class<?> clazz)
boolean or Boolean typeclazz - the typestatic boolean isString(Class<?> clazz)
String typeclazz - the typestatic boolean isChar(Class<?> clazz)
char or Character typeclazz - the typestatic boolean isBigDecimal(Class<?> clazz)
BigDecimal typeclazz - the typestatic boolean isLocalDate(Class<?> clazz)
LocalDate typeclazz - the typestatic boolean isLocalDateTime(Class<?> clazz)
LocalDateTime typeclazz - the typestatic boolean isTime(Class<?> clazz)
Time typeclazz - the typeCopyright © 2022. All rights reserved.