Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
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 (309)
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/xwpf/usermodel/XWPFSDTContent.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.xwpf.usermodel; import java.util.ArrayList; import java.util.List; import org.apache.poi.util.Beta; import org.apache.xmlbeans.XmlCursor; import org.apache.xmlbeans.XmlObject; import org.openxmlformats.schemas.wordprocessingml.x2006.main.*; /** * Experimental class to offer rudimentary read-only processing of * of the contentblock of an SDT/ContentControl. */ @Beta public class XWPFSDTContent implements ISDTContent { // private final IBody part; // private final XWPFDocument document; // private List<XWPFParagraph> paragraphs = new ArrayList<>(); // private List<XWPFTable> tables = new ArrayList<>(); // private List<XWPFRun> runs = new ArrayList<>(); // private List<XWPFSDT> contentControls = new ArrayList<>(); private final List<ISDTContents> bodyElements = new ArrayList<>(); public XWPFSDTContent(CTSdtContentRun sdtRun, IBody part, IRunBody parent) { if (sdtRun == null) { return; } try (final XmlCursor cursor = sdtRun.newCursor()) { cursor.selectPath("./*"); while (cursor.toNextSelection()) { XmlObject o = cursor.getObject(); if (o instanceof CTR) { XWPFRun run = new XWPFRun((CTR) o, parent); bodyElements.add(run); } else if (o instanceof CTSdtRun) { XWPFSDT c = new XWPFSDT(((CTSdtRun) o), part); bodyElements.add(c); } } } } public XWPFSDTContent(CTSdtContentBlock block, IBody part, IRunBody parent) { if (block == null) { return; } try (final XmlCursor cursor = block.newCursor()) { cursor.selectPath("./*"); while (cursor.toNextSelection()) { XmlObject o = cursor.getObject(); if (o instanceof CTP) { XWPFParagraph p = new XWPFParagraph((CTP) o, part); bodyElements.add(p); // paragraphs.add(p); } else if (o instanceof CTTbl) { XWPFTable t = new XWPFTable((CTTbl) o, part); bodyElements.add(t); // tables.add(t); } else if (o instanceof CTSdtBlock) { XWPFSDT c = new XWPFSDT(((CTSdtBlock) o), part); bodyElements.add(c); // contentControls.add(c); } else if (o instanceof CTR) { XWPFRun run = new XWPFRun((CTR) o, parent); // runs.add(run); bodyElements.add(run); } } } } @Override public String getText() { StringBuilder text = new StringBuilder(); boolean addNewLine = false; for (int i = 0; i < bodyElements.size(); i++) { Object o = bodyElements.get(i); if (o instanceof XWPFParagraph) { appendParagraph((XWPFParagraph) o, text); addNewLine = true; } else if (o instanceof XWPFTable) { appendTable((XWPFTable) o, text); addNewLine = true; } else if (o instanceof XWPFSDT) { text.append(((XWPFSDT) o).getContent().getText()); addNewLine = true; } else if (o instanceof XWPFRun) { text.append(o); addNewLine = false; } if (addNewLine && i < bodyElements.size() - 1) { text.append("\n"); } } return text.toString(); } private void appendTable(XWPFTable table, StringBuilder text) { //this works recursively to pull embedded tables from within cells for (XWPFTableRow row : table.getRows()) { List<ICell> cells = row.getTableICells(); for (int i = 0; i < cells.size(); i++) { ICell cell = cells.get(i); if (cell instanceof XWPFTableCell) { text.append(((XWPFTableCell) cell).getTextRecursively()); } else if (cell instanceof XWPFSDTCell) { text.append(((XWPFSDTCell) cell).getContent().getText()); } if (i < cells.size() - 1) { text.append("\t"); } } text.append('\n'); } } private void appendParagraph(XWPFParagraph paragraph, StringBuilder text) { for (IRunElement run : paragraph.getRuns()) { text.append(run); } } @Override public String toString() { return getText(); } }
⏎ org/apache/poi/xwpf/usermodel/XWPFSDTContent.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, 23826👍, 0💬
Popular Posts:
JDK 11 jdk.localedata.jmod is the JMOD file for JDK 11 Localedata module. JDK 11 Locale Data module ...
Old version of xml-apis.jar. JAR File Size and Download Location: File name: xmlParserAPIs.jar File ...
The Web Services Description Language for Java Toolkit (WSDL4J), Release 1.6.2, allows the creation,...
Where to find answers to frequently asked questions on Download and Installing of Older Versions? He...
What Is javax.websocket-api-1.1. jar?javax.websocket-api-1.1. jaris the JAR file for Java API for We...