如何在java中附加一个excel文件并使用JRXlsExporter来编写该文件

我有一个Excel文件,我想添加新的数据到文件的末尾。
为此,我使用这种方法

public static void exportXLS(JasperPrint jasperPrint, String fileName) throws IOException, JRException{ SimpleXlsReportConfiguration configuration = new SimpleXlsReportConfiguration(); configuration.setOnePagePerSheet(true); configuration.setDetectCellType(true); configuration.setCollapseRowSpan(false); configuration.setWhitePageBackground(false); File file = new File(fileName+".xls"); FileOutputStream fos = new FileOutputStream(file,true); JRXlsExporter exporterXLS = new JRXlsExporter(); exporterXLS.setExporterInput(new SimpleExporterInput(jasperPrint)); exporterXLS.setExporterOutput(new SimpleOutputStreamExporterOutput(fos)); exporterXLS.setConfiguration(configuration); exporterXLS.exportReport(); } 

我已经设置了真正的FileOutputStream构造函数的append参数,但仍然无法正常工作。
当我打开文件时,我发现只是新的数据,而不是旧的数据。