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/util/LocaleUtil.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.util; import java.nio.charset.Charset; import java.time.ZoneOffset; import java.util.Calendar; import java.util.Locale; import java.util.TimeZone; /** * This utility class is used to set locale and time zone settings beside * of the JDK internal {@link java.util.Locale#setDefault(Locale)} and * {@link java.util.TimeZone#setDefault(TimeZone)} methods, because * the locale/time zone specific handling of certain office documents - * maybe for different time zones / locales ... - shouldn't affect * other java components. * * The settings are saved in a {@link java.lang.ThreadLocal}, * so they only apply to the current thread and can't be set globally. */ public final class LocaleUtil { private LocaleUtil() { // no instances of this class } /** * Excel doesn't store TimeZone information in the file, so if in doubt, * use UTC to perform calculations */ public static final TimeZone TIMEZONE_UTC = TimeZone.getTimeZone(ZoneOffset.UTC); /** * Default encoding for unknown byte encodings of native files * (at least it's better than to rely on a platform dependent encoding * for legacy stuff ...) */ public static final Charset CHARSET_1252 = Charset.forName("CP1252"); private static final ThreadLocal<TimeZone> userTimeZone = new ThreadLocal<>(); private static final ThreadLocal<Locale> userLocale = new ThreadLocal<>(); /** * As time zone information is not stored in any format, it can be * set before any date calculations take place. * This setting is specific to the current thread. * * @param timezone the timezone under which date calculations take place */ public static void setUserTimeZone(TimeZone timezone) { userTimeZone.set(timezone); } /** * @return the time zone which is used for date calculations. If not set, returns {@link TimeZone#getDefault()}. */ @SuppressForbidden("implementation around default locales in POI") public static TimeZone getUserTimeZone() { TimeZone timeZone = userTimeZone.get(); return (timeZone != null) ? timeZone : TimeZone.getDefault(); } /** * Clear the thread-local user time zone. */ public static void resetUserTimeZone() { userTimeZone.remove(); } /** * Sets default user locale. * This setting is specific to the current thread. */ public static void setUserLocale(Locale locale) { userLocale.set(locale); } /** * @return the default user locale. If not set, returns {@link Locale#getDefault()}. */ @SuppressForbidden("implementation around default locales in POI") public static Locale getUserLocale() { Locale locale = userLocale.get(); return (locale != null) ? locale : Locale.getDefault(); } public static void resetUserLocale() { userLocale.remove(); } /** * @return a calendar for the user locale and time zone */ public static Calendar getLocaleCalendar() { return getLocaleCalendar(getUserTimeZone()); } /** * Convenience method - month is 0-based as in java.util.Calendar * * @return a calendar for the user locale and time zone, and the given date */ public static Calendar getLocaleCalendar(int year, int month, int day) { return getLocaleCalendar(year, month, day, 0, 0, 0); } /** * Convenience method - month is 0-based as in java.util.Calendar * * @return a calendar for the user locale and time zone, and the given date */ public static Calendar getLocaleCalendar(int year, int month, int day, int hour, int minute, int second) { Calendar cal = getLocaleCalendar(); cal.set(year, month, day, hour, minute, second); cal.clear(Calendar.MILLISECOND); return cal; } /** * @return a calendar for the user locale and time zone */ public static Calendar getLocaleCalendar(TimeZone timeZone) { return Calendar.getInstance(timeZone, getUserLocale()); } /** * Decode the language ID from LCID value * * @param lcid the LCID value * @return the locale/language ID */ public static String getLocaleFromLCID(int lcid) { LocaleID lid = LocaleID.lookupByLcid(lcid & 0xFFFF); return (lid == null) ? "invalid" : lid.getLanguageTag(); } /** * Get default code page from LCID value * * @param lcid the LCID value * @return the default code page */ public static int getDefaultCodePageFromLCID(int lcid) { LocaleID lid = LocaleID.lookupByLcid(lcid & 0xFFFF); return (lid == null) ? 0 : lid.getDefaultCodepage(); } }
⏎ org/apache/poi/util/LocaleUtil.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, 56925👍, 0💬
Popular Posts:
What Is log4j-1.2.15.jar? I got the JAR file from apache-log4j-1.2.15.zip. log4j-1.2.15.jar is the v...
How to download and install mysql-connector-j-8.0.31 .zip?Connector/J Java library is a JDBC Driver ...
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...
JDK 17 java.xml.jmod is the JMOD file for JDK 17 XML (eXtensible Markup Language) module. JDK 17 XML...
Apache Log4j SLF4J Binding allows applications coded to the SLF4J API to use Log4j 2 as the implemen...