SXSSFWorkbook wb = new SXSSFWorkbook(100);
StaxParserBaseExportHelperDetails staxParserBaseExportHelperDetails = new StaxParserBaseExportHelperDetails();
staxParserBaseExportHelperDetails.setUser(user);
staxParserBaseExportHelperDetails.setStyles(getXLSStyle());
try
{
// First create a new XMLInputFactory
XMLInputFactory inputFactory = XMLInputFactory.newInstance();
// Setup a new streamReader
staxParserBaseExportHelperDetails.setXmlStreamReader(inputFactory.createXMLStreamReader(in));
while (staxParserBaseExportHelperDetails.getXmlStreamReader().hasNext())
{
staxParserBaseExportHelperDetails.setEventType(staxParserBaseExportHelperDetails.getXmlStreamReader().next());
eventTypeStartElement(siteID, footerRequired, wb, staxParserBaseExportHelperDetails);
eventTypeCharacters(staxParserBaseExportHelperDetails);
eventTypeEndElement(wb, staxParserBaseExportHelperDetails, siteID, footerRequired);
}
wb.write(os);
wb.dispose();
}
在下面的语句执行后添加了撇号(') wb.write(os);
wb.write(os);