public class ExcelSheetSink extends Object implements DataModelSink
DataModelSink
.Constructor and Description |
---|
ExcelSheetSink(DataModelDefinition<?> definition,
org.apache.poi.ss.usermodel.Sheet sheet,
int maxColumns)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
put(DataModelReflection model)
Puts a reflection of data model object into this channel.
|
public ExcelSheetSink(DataModelDefinition<?> definition, org.apache.poi.ss.usermodel.Sheet sheet, int maxColumns)
definition
- the data model definitionsheet
- target sheetmaxColumns
- the count of max columnsIllegalArgumentException
- if some parameters were null
public void put(DataModelReflection model)
DataModelSink
put
in interface DataModelSink
model
- target data model objectpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.