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-5.2.3.jar?
What Is poi-5.2.3.jar?
✍: FYIcenter.com
poi-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-5.2.3.jar supports Apache POI components that read and write Microsoft's OLE 2 Compound document format, which is used in early versions of Microsoft Office tools like Word 97, Excel 97, PowerPoint 97, etc.
poi-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-5.2.3.jar Target JDK version: 9 File name: poi.jar, poi-5.2.3.jar File size: 2964641 bytes Release date: 09-09-2022 Download: Apache POI Website
Here are Java Source Code files for poi-5.2.3.jar:
⏎ org/apache/poi/sl/usermodel/ObjectShape.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.sl.usermodel; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream; import org.apache.poi.poifs.filesystem.DirectoryNode; import org.apache.poi.poifs.filesystem.FileMagic; import org.apache.poi.poifs.filesystem.POIFSFileSystem; import org.apache.poi.sl.usermodel.ObjectMetaData.Application; import org.apache.poi.util.IOUtils; /** * An shape which references an embedded OLE object * * @since POI 4.0.0 */ public interface ObjectShape< S extends Shape<S,P>, P extends TextParagraph<S,P,? extends TextRun> > extends Shape<S,P>, PlaceableShape<S,P> { /** * Returns the picture data for this picture. * * @return the picture data for this picture. */ PictureData getPictureData(); /** * Returns the ProgID that stores the OLE Programmatic Identifier. * A ProgID is a string that uniquely identifies a given object, for example, * "Word.Document.8" or "Excel.Sheet.8". * * @return the ProgID */ String getProgId(); /** * Returns the full name of the embedded object, * e.g. "Microsoft Word Document" or "Microsoft Office Excel Worksheet". * * @return the full name of the embedded object */ String getFullName(); /** * Updates the ole data. If there wasn't an object registered before, a new * ole embedding is registered in the parent slideshow.<p> * * For HSLF this needs to be a {@link POIFSFileSystem} stream. * * @param application a preset application enum * @param metaData or a custom metaData object, can be {@code null} if the application has been set * * @return an {@link OutputStream} which receives the new data, the data will be persisted on {@code close()} * * @throws IOException if the linked object data couldn't be found or a new object data couldn't be initialized */ OutputStream updateObjectData(ObjectMetaData.Application application, ObjectMetaData metaData) throws IOException; /** * Reads the ole data as stream - the application specific stream is served * The {@link #readObjectDataRaw() raw data} serves the outer/wrapped object, which is usually a * {@link POIFSFileSystem} stream, whereas this method return the unwrapped entry * * @return an {@link InputStream} which serves the object data * * @throws IOException if the linked object data couldn't be found */ default InputStream readObjectData() throws IOException { final String progId = getProgId(); if (progId == null) { throw new IllegalStateException( "Ole object hasn't been initialized or provided in the source xml. " + "use updateObjectData() first or check the corresponding slideXXX.xml"); } final Application app = Application.lookup(progId); try (final UnsynchronizedByteArrayOutputStream bos = new UnsynchronizedByteArrayOutputStream(); final InputStream is = FileMagic.prepareToCheckMagic(readObjectDataRaw())) { final FileMagic fm = FileMagic.valueOf(is); if (fm == FileMagic.OLE2) { try (final POIFSFileSystem poifs = new POIFSFileSystem(is)) { String[] names = { (app == null) ? null : app.getMetaData().getOleEntry(), // fallback to the usual suspects "Package", "Contents", "CONTENTS", "CONTENTSV30", }; final DirectoryNode root = poifs.getRoot(); String entryName = null; for (String n : names) { if (root.hasEntry(n)) { entryName = n; break; } } if (entryName == null) { poifs.writeFilesystem(bos); } else { try (final InputStream is2 = poifs.createDocumentInputStream(entryName)) { IOUtils.copy(is2, bos); } } } } else { IOUtils.copy(is, bos); } return bos.toInputStream(); } } /** * Convenience method to return the raw data as {@code InputStream} * * @return the raw data stream * * @throws IOException if the data couldn't be retrieved */ default InputStream readObjectDataRaw() throws IOException { return getObjectData().getInputStream(); } /** * @return the data object */ ObjectData getObjectData(); }
⏎ org/apache/poi/sl/usermodel/ObjectShape.java
Or download all of them as a single archive file:
File name: poi-5.2.3-src.zip File size: 2479830 bytes Release date: 2022-09-09 Download
⇒ What Is poi-ooxml-5.2.3.jar?
⇐ What Is poi-bin-5.2.3-20220909.zip?
2017-04-04, 67501👍, 0💬
Popular Posts:
Commons VFS provides a single API for accessing various different file systems. It presents a unifor...
JDK 11 jdk.jconsole.jmod is the JMOD file for JDK 11 JConsole tool, which can be invoked by the "jco...
What Is poi-scratchpad-3.5.jar? poi-scratchpad-3.5.jar is one of the JAR files for Apache POI 3.5, w...
How to read XML document with DTD validation from socket connections with the socket\DelayedInput.ja.. .
ANTLR is a powerful parser generator for multiple programming languages including Java. ANTLR contai...