XSSFHandler
功能详细描述:基于OPI用户事件模型,逐行解析Excel电子格式的大文件。 @author Andy.zheng zhengwei09@founder.com @see com.common.platform.excel.ExcelReaderFactory @version 1.0, 2013-7-30 上午10:14:20 @since Commons Plateform 1.0
5354555657585960616263
ExcelDataParser parser = null; InputStream inp = new FileInputStream(fileName); 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");