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/hpsf/PropertySetFactory.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.hpsf; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.UnsupportedEncodingException; import org.apache.poi.poifs.filesystem.DirectoryEntry; import org.apache.poi.poifs.filesystem.DirectoryNode; import org.apache.poi.poifs.filesystem.DocumentInputStream; import org.apache.poi.util.LittleEndianInputStream; /** * Factory class to create instances of {@link SummaryInformation}, * {@link DocumentSummaryInformation} and {@link PropertySet}. */ public class PropertySetFactory { /** * Creates the most specific {@link PropertySet} from an entry * in the specified POIFS Directory. This is preferrably a {@link * DocumentSummaryInformation} or a {@link SummaryInformation}. If * the specified entry does not contain a property set stream, an * exception is thrown. If no entry is found with the given name, * an exception is thrown. * * @param dir The directory to find the PropertySet in * @param name The name of the entry containing the PropertySet * @return The created {@link PropertySet}. * @throws FileNotFoundException if there is no entry with that name * @throws NoPropertySetStreamException if the stream does not * contain a property set. * @throws IOException if some I/O problem occurs. * @throws UnsupportedEncodingException if the specified codepage is not * supported. */ public static PropertySet create(final DirectoryEntry dir, final String name) throws FileNotFoundException, NoPropertySetStreamException, IOException, UnsupportedEncodingException { try (DocumentInputStream inp = ((DirectoryNode)dir).createDocumentInputStream(name)) { return create(inp); } } /** * Creates the most specific {@link PropertySet} from an {@link * InputStream}. This is preferrably a {@link * DocumentSummaryInformation} or a {@link SummaryInformation}. If * the specified {@link InputStream} does not contain a property * set stream, an exception is thrown and the {@link InputStream} * is repositioned at its beginning. * * @param stream Contains the property set stream's data. * @return The created {@link PropertySet}. * @throws NoPropertySetStreamException if the stream does not * contain a property set. * @throws IOException if some I/O problem occurs. * @throws UnsupportedEncodingException if the specified codepage is not * supported. */ public static PropertySet create(final InputStream stream) throws NoPropertySetStreamException, IOException { stream.mark(PropertySet.OFFSET_HEADER+ClassID.LENGTH+1); LittleEndianInputStream leis = new LittleEndianInputStream(stream); int byteOrder = leis.readUShort(); int format = leis.readUShort(); /*int osVersion = (int)*/leis.readUInt(); byte[] clsIdBuf = new byte[ClassID.LENGTH]; leis.readFully(clsIdBuf); int sectionCount = (int)leis.readUInt(); if (byteOrder != PropertySet.BYTE_ORDER_ASSERTION || format != PropertySet.FORMAT_ASSERTION || sectionCount < 0) { throw new NoPropertySetStreamException("ByteOrder: " + byteOrder + ", format: " + format + ", sectionCount: " + sectionCount); } if (sectionCount > 0) { leis.readFully(clsIdBuf); } stream.reset(); ClassID clsId = new ClassID(clsIdBuf, 0); if (sectionCount > 0 && PropertySet.matchesSummary(clsId, SummaryInformation.FORMAT_ID)) { return new SummaryInformation(stream); } else if (sectionCount > 0 && PropertySet.matchesSummary(clsId, DocumentSummaryInformation.FORMAT_ID)) { return new DocumentSummaryInformation(stream); } else { return new PropertySet(stream); } } /** * Creates a new summary information. * * @return the new summary information. */ public static SummaryInformation newSummaryInformation() { return new SummaryInformation(); } /** * Creates a new document summary information. * * @return the new document summary information. */ public static DocumentSummaryInformation newDocumentSummaryInformation() { return new DocumentSummaryInformation(); } }
⏎ org/apache/poi/hpsf/PropertySetFactory.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, 92624👍, 0💬
Popular Posts:
Joda-Time provides a quality replacement for the Java date and time classes. The design allows for m...
How to download and install JDK (Java Development Kit) 6? If you want to write Java applications, yo...
Jettison is a collection of Java APIs (like STaX and DOM) which read and write JSON. This allows nea...
Jetty provides an HTTP server, HTTP client, and javax.servlet container. These components are open s...
MP3SPI is a Java Service Provider Interface that adds MP3 (MPEG 1/2/2.5 Layer 1/2/3) audio format su...