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/hssf/usermodel/HSSFDataFormat.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.hssf.usermodel; import java.util.Arrays; import java.util.Iterator; import java.util.List; import java.util.Vector; import org.apache.poi.hssf.model.InternalWorkbook; import org.apache.poi.hssf.record.FormatRecord; import org.apache.poi.ss.usermodel.BuiltinFormats; import org.apache.poi.ss.usermodel.DataFormat; /** * Identifies both built-in and user defined formats within a workbook.<p> * See {@link BuiltinFormats} for a list of supported built-in formats.<p> * * <b>International Formats</b><br> * Since version 2003 Excel has supported international formats. These are denoted * with a prefix "[$-xxx]" (where xxx is a 1-7 digit hexadecimal number). * * @see <a href="https://support.microsoft.com/en-us/office/review-guidelines-for-customizing-a-number-format-c0a1d1fa-d3f4-4018-96b7-9c9354dd99f5">Review guidelines for customizing a number format</a> */ public final class HSSFDataFormat implements DataFormat { private static final String[] _builtinFormats = BuiltinFormats.getAll(); private final Vector<String> _formats = new Vector<>(); private final InternalWorkbook _workbook; private boolean _movedBuiltins; // Flag to see if need to // check the built in list // or if the regular list // has all entries. /** * Constructs a new data formatter. It takes a workbook to have * access to the workbooks format records. * @param workbook the workbook the formats are tied to. */ HSSFDataFormat(InternalWorkbook workbook) { _workbook = workbook; for (FormatRecord r : workbook.getFormats()) { ensureFormatsSize(r.getIndexCode()); _formats.set(r.getIndexCode(), r.getFormatString()); } } public static List<String> getBuiltinFormats() { return Arrays.asList(_builtinFormats); } /** * get the format index that matches the given format string<p> * Automatically converts "text" to excel's format string to represent text. * @param format string matching a built in format * @return index of format or -1 if undefined. */ public static short getBuiltinFormat(String format) { return (short) BuiltinFormats.getBuiltinFormat(format); } /** * Get the format index that matches the given format * string, creating a new format entry if required. * Aliases text to the proper format as required. * @param pFormat string matching a built in format * @return index of format. */ public short getFormat(String pFormat) { // Normalise the format string String format; if (pFormat.equalsIgnoreCase("TEXT")) { format = "@"; } else { format = pFormat; } // Merge in the built in formats if we haven't already if (!_movedBuiltins) { for (int i=0; i<_builtinFormats.length; i++) { ensureFormatsSize(i); if (_formats.get(i) == null) { _formats.set(i, _builtinFormats[i]); } else { // The workbook overrides this default format } } _movedBuiltins = true; } // See if we can find it for(int i=0; i<_formats.size(); i++) { if(format.equals(_formats.get(i))) { return (short)i; } } // We can't find it, so add it as a new one short index = _workbook.getFormat(format, true); ensureFormatsSize(index); _formats.set(index, format); return index; } /** * get the format string that matches the given format index * @param index of a format * @return string represented at index of format or null if there is not a format at that index */ public String getFormat(short index) { if (_movedBuiltins) { return _formats.get(index); } if(index == -1) { // YK: formatIndex can be -1, for example, for cell in column Y in test-data/spreadsheet/45322.xls // return null for those return null; } String fmt = _formats.size() > index ? _formats.get(index) : null; if (_builtinFormats.length > index && _builtinFormats[index] != null) { // It's in the built in range if (fmt != null) { // It's been overriden, use that value return fmt; } else { // Standard built in format return _builtinFormats[index]; } } return fmt; } /** * get the format string that matches the given format index * @param index of a built in format * @return string represented at index of format or null if there is not a builtin format at that index */ public static String getBuiltinFormat(short index) { return BuiltinFormats.getBuiltinFormat(index); } /** * get the number of built-in and reserved builtinFormats * @return number of built-in and reserved builtinFormats */ public static int getNumberOfBuiltinBuiltinFormats() { return _builtinFormats.length; } /** * Ensures that the formats list can hold entries * up to and including the entry with this index */ private void ensureFormatsSize(int index) { if(_formats.size() <= index) { _formats.setSize(index+1); } } }
⏎ org/apache/poi/hssf/usermodel/HSSFDataFormat.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, 85055👍, 0💬
Popular Posts:
What Is HttpComponents httpclient-4.2.2.jar? HttpComponents httpclient-4.2.2.jar is the JAR file for...
JDK 11 jdk.charsets.jmod is the JMOD file for JDK 11 Charsets module. JDK 11 Charsets module compile...
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
commons-lang-1.0.1.jar is the JAR file for Apache Commons Lang 1.0.1, which provides a host of helpe...
JDK 11 jdk.crypto.mscapi.jmod is the JMOD file for JDK 11 Crypto MSCAPI module. JDK 11 Crypto MSCAPI...