Bug 11768 - [RFE] add copy constructor to workbook
Summary: [RFE] add copy constructor to workbook
Status: RESOLVED WONTFIX
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: unspecified
Hardware: All other
: P3 major (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-16 13:29 UTC by Zsoldos Istv
Modified: 2008-12-16 09:21 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zsoldos Istv 2002-08-16 13:29:55 UTC
I need using copy constructor for HSSFWokbook.I want to store always the 
original  object in memory and a copy of this after modification need for 
 other modification and so on.

  baseWB = new HSSFWorkbook(new FileInputStream("filename"));
  copyWB = new HSSFWorkbook(baseWB);

  because I don't want construct the workbook object every time.
  I change the workbook then save.After I need the original workbook
  object without reconstructing.   (it takes too long time 30sec)
  Then change it and save and again.Any times.
  Is it possible?
Comment 1 Yegor Kozlov 2008-12-16 09:21:55 UTC
No, it is not possible. The only way to instantiate a workbook is to read it from a stream. 
Try the latest POI-3.5-beta4. The performance has significantly improved since the time this bug was created. 

Yegor