Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
What Is poi-ooxml-5.2.3.jar?
What Is poi-ooxml-5.2.3.jar?
✍: FYIcenter.com
poi-ooxml-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which
provides an API for Microsoft document files of Word, Excel, PowerPoint, and Visio.
poi-ooxml-5.2.3.jar supports Apache POI components that read and write Microsoft's Open Office XML document format, which is used in recent versions of Microsoft Office tools like Word 2007, Excel 2007, PowerPoint 2007, etc.
poi-ooxml-5.2.3.jar is distributed as part of the poi-bin-5.2.3-20220909.zip download file.
JAR File Size and Download Location:
JAR name: poi-ooxml-5.2.3.jar Target JDK version: 9 Dependency: poi.jar xmlbeans.jar ooxml-schemas.jar commons-collections.jar junit.jar File name: poi-ooxml.jar, poi-ooxml-5.2.3.jar File size: 2010497 bytes Release date: 09-09-2022 Download: Apache POI Website
Here are Java Source Code files for poi-ooxml-5.2.3.jar:
⏎ org/apache/poi/xssf/extractor/XSSFBEventBasedExcelExtractor.java
/* ==================================================================== Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==================================================================== */ package org.apache.poi.xssf.extractor; import java.io.IOException; import java.io.InputStream; import java.util.Collections; import java.util.List; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.apache.poi.openxml4j.exceptions.OpenXML4JException; import org.apache.poi.openxml4j.opc.OPCPackage; import org.apache.poi.ss.usermodel.DataFormatter; import org.apache.poi.xssf.binary.XSSFBCommentsTable; import org.apache.poi.xssf.binary.XSSFBHyperlinksTable; import org.apache.poi.xssf.binary.XSSFBSharedStringsTable; import org.apache.poi.xssf.binary.XSSFBSheetHandler; import org.apache.poi.xssf.binary.XSSFBStylesTable; import org.apache.poi.xssf.eventusermodel.XSSFBReader; import org.apache.poi.xssf.eventusermodel.XSSFSheetXMLHandler.SheetContentsHandler; import org.apache.poi.xssf.model.SharedStrings; import org.apache.poi.xssf.usermodel.XSSFRelation; import org.apache.xmlbeans.XmlException; import org.xml.sax.SAXException; /** * Implementation of a text extractor or xlsb Excel * files that uses SAX-like binary parsing. * * @since 3.16-beta3 */ public class XSSFBEventBasedExcelExtractor extends XSSFEventBasedExcelExtractor { private static final Logger LOGGER = LogManager.getLogger(XSSFBEventBasedExcelExtractor.class); public static final List<XSSFRelation> SUPPORTED_TYPES = Collections.singletonList( XSSFRelation.XLSB_BINARY_WORKBOOK ); private boolean handleHyperlinksInCells; public XSSFBEventBasedExcelExtractor(String path) throws XmlException, OpenXML4JException, IOException { super(path); } public XSSFBEventBasedExcelExtractor(OPCPackage container) throws XmlException, OpenXML4JException, IOException { super(container); } public void setHandleHyperlinksInCells(boolean handleHyperlinksInCells) { this.handleHyperlinksInCells = handleHyperlinksInCells; } /** * Should we return the formula itself, and not * the result it produces? Default is false * This is currently unsupported for xssfb */ @Override public void setFormulasNotResults(boolean formulasNotResults) { throw new IllegalArgumentException("Not currently supported"); } /** * Processes the given sheet */ public void processSheet( SheetContentsHandler sheetContentsExtractor, XSSFBStylesTable styles, XSSFBCommentsTable comments, SharedStrings strings, InputStream sheetInputStream) throws IOException { DataFormatter formatter; if (getLocale() == null) { formatter = new DataFormatter(); } else { formatter = new DataFormatter(getLocale()); } XSSFBSheetHandler xssfbSheetHandler = new XSSFBSheetHandler( sheetInputStream, styles, comments, strings, sheetContentsExtractor, formatter, getFormulasNotResults() ); xssfbSheetHandler.parse(); } /** * Processes the file and returns the text */ public String getText() { try { XSSFBSharedStringsTable strings = new XSSFBSharedStringsTable(getPackage()); XSSFBReader xssfbReader = new XSSFBReader(getPackage()); XSSFBStylesTable styles = xssfbReader.getXSSFBStylesTable(); XSSFBReader.SheetIterator iter = (XSSFBReader.SheetIterator) xssfbReader.getSheetsData(); StringBuilder text = new StringBuilder(64); SheetTextExtractor sheetExtractor = new SheetTextExtractor(); XSSFBHyperlinksTable hyperlinksTable = null; while (iter.hasNext()) { try (InputStream stream = iter.next()) { if (getIncludeSheetNames()) { text.append(iter.getSheetName()); text.append('\n'); } if (handleHyperlinksInCells) { hyperlinksTable = new XSSFBHyperlinksTable(iter.getSheetPart()); } XSSFBCommentsTable comments = getIncludeCellComments() ? iter.getXSSFBSheetComments() : null; processSheet(sheetExtractor, styles, comments, strings, stream); if (getIncludeHeadersFooters()) { sheetExtractor.appendHeaderText(text); } sheetExtractor.appendCellText(text); if (getIncludeTextBoxes()) { processShapes(iter.getShapes(), text); } if (getIncludeHeadersFooters()) { sheetExtractor.appendFooterText(text); } sheetExtractor.reset(); } } return text.toString(); } catch (IOException | OpenXML4JException | SAXException e) { LOGGER.atWarn().withThrowable(e).log("Failed to load text"); return ""; } } }
⏎ org/apache/poi/xssf/extractor/XSSFBEventBasedExcelExtractor.java
Or download all of them as a single archive file:
File name: poi-ooxml-5.2.3-src.zip File size: 1396572 bytes Release date: 2022-09-09 Download
⇒ What Is poi-excelant-5.2.3.jar?
2017-04-01, 68647👍, 0💬
Popular Posts:
What Is jsse.jar (JDK 6) Java Secure Socket Extension? jsse.jar, Java Secure Socket Extension, is Ja...
JDK 11 jdk.scripting.nashorn.jm odis the JMOD file for JDK 11 Scripting Nashorn module. JDK 11 Scrip...
Apache Log4j Core Implementation provides the functional components of the logging system. Users are...
The Jakarta-ORO Java classes are a set of text-processing Java classes that provide Perl5 compatible...
How to read XML document from socket connections with the socket\DelayedInput.java provided in the A...