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?
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