XSSFHandler
功能详细描述:基于OPI用户事件模型,逐行解析Excel XML格式的大文件。 @author Andy.zheng zhengwei09@founder.com @see com.common.platform.excel.ExcelReaderFactory @version 1.0, 2013-7-30 上午10:43:05 @since Commons Plateform 1.0
5556575859606162636465
if (!inp.markSupported()) inp = new PushbackInputStream(inp, 8); if (POIFSFileSystem.hasPOIFSHeader(inp)) { parser = new HSSFParser(this); } else if (POIXMLDocument.hasOOXMLHeader(inp)) { parser = new XSSFParser(this); } if (null == parser) { throw new IllegalArgumentException("Your InputStream was neither an OLE2 stream, nor an OOXML stream"); }