preparations for event record factory
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352923 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c8a34f8af0
commit
3b4b6dd9ec
@ -60,6 +60,8 @@
|
|||||||
package org.apache.poi.hssf.usermodel;
|
package org.apache.poi.hssf.usermodel;
|
||||||
|
|
||||||
import org.apache.poi.util.POILogFactory;
|
import org.apache.poi.util.POILogFactory;
|
||||||
|
import org.apache.poi.hssf.eventmodel.EventRecordFactory;
|
||||||
|
import org.apache.poi.hssf.eventmodel.ModelFactory;
|
||||||
import org.apache.poi.hssf.model.Sheet;
|
import org.apache.poi.hssf.model.Sheet;
|
||||||
import org.apache.poi.hssf.model.Workbook;
|
import org.apache.poi.hssf.model.Workbook;
|
||||||
import org.apache.poi.hssf.record.*;
|
import org.apache.poi.hssf.record.*;
|
||||||
@ -178,6 +180,11 @@ public class HSSFWorkbook
|
|||||||
names = new ArrayList(INITIAL_CAPACITY);
|
names = new ArrayList(INITIAL_CAPACITY);
|
||||||
|
|
||||||
InputStream stream = fs.createDocumentInputStream("Workbook");
|
InputStream stream = fs.createDocumentInputStream("Workbook");
|
||||||
|
|
||||||
|
EventRecordFactory factory = new EventRecordFactory();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
List records = RecordFactory.createRecords(stream);
|
List records = RecordFactory.createRecords(stream);
|
||||||
|
|
||||||
workbook = Workbook.createWorkbook(records);
|
workbook = Workbook.createWorkbook(records);
|
||||||
|
Loading…
Reference in New Issue
Block a user