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/record/CFRuleRecord.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.record; import org.apache.poi.hssf.usermodel.HSSFSheet; import org.apache.poi.ss.formula.Formula; import org.apache.poi.ss.formula.ptg.Ptg; import org.apache.poi.util.LittleEndianOutput; /** * Conditional Formatting Rule Record (0x01B1). * * <p>This is for the older-style Excel conditional formattings, * new-style (Excel 2007+) also make use of {@link CFRule12Record} * for their rules.</p> */ public final class CFRuleRecord extends CFRuleBase { public static final short sid = 0x01B1; public CFRuleRecord(CFRuleRecord other) { super(other); } private CFRuleRecord(byte conditionType, byte comparisonOperation, Ptg[] formula1, Ptg[] formula2) { super(conditionType, comparisonOperation, formula1, formula2); setDefaults(); } private void setDefaults() { // Set modification flags to 1: by default options are not modified formatting_options = modificationBits.setValue(formatting_options, -1); // Set formatting block flags to 0 (no formatting blocks) formatting_options = fmtBlockBits.setValue(formatting_options, 0); formatting_options = undocumented.clear(formatting_options); formatting_not_used = (short)0x8002; // Excel seems to write this value, but it doesn't seem to care what it reads _fontFormatting = null; _borderFormatting = null; _patternFormatting = null; } /** * Creates a new comparison operation rule * * @param sheet the sheet * @param formulaText the formula text * * @return a new comparison operation rule */ public static CFRuleRecord create(HSSFSheet sheet, String formulaText) { Ptg[] formula1 = parseFormula(formulaText, sheet); return new CFRuleRecord(CONDITION_TYPE_FORMULA, ComparisonOperator.NO_COMPARISON, formula1, null); } /** * Creates a new comparison operation rule * * @param sheet the sheet * @param comparisonOperation the comparison operation * @param formulaText1 the first formula text * @param formulaText2 the second formula text * * @return a new comparison operation rule */ public static CFRuleRecord create(HSSFSheet sheet, byte comparisonOperation, String formulaText1, String formulaText2) { Ptg[] formula1 = parseFormula(formulaText1, sheet); Ptg[] formula2 = parseFormula(formulaText2, sheet); return new CFRuleRecord(CONDITION_TYPE_CELL_VALUE_IS, comparisonOperation, formula1, formula2); } public CFRuleRecord(RecordInputStream in) { setConditionType(in.readByte()); setComparisonOperation(in.readByte()); int field_3_formula1_len = in.readUShort(); int field_4_formula2_len = in.readUShort(); readFormatOptions(in); // "You may not use unions, intersections or array constants in Conditional Formatting criteria" setFormula1(Formula.read(field_3_formula1_len, in)); setFormula2(Formula.read(field_4_formula2_len, in)); } @Override public short getSid() { return sid; } /** * called by the class that is responsible for writing this sucker. * Subclasses should implement this so that their data is passed back in a * byte array. * * @param out the stream to write to */ @Override public void serialize(LittleEndianOutput out) { int formula1Len=getFormulaSize(getFormula1()); int formula2Len=getFormulaSize(getFormula2()); out.writeByte(getConditionType()); out.writeByte(getComparisonOperation()); out.writeShort(formula1Len); out.writeShort(formula2Len); serializeFormattingBlock(out); getFormula1().serializeTokens(out); getFormula2().serializeTokens(out); } @Override protected int getDataSize() { return 6 + getFormattingBlockSize() + getFormulaSize(getFormula1())+ getFormulaSize(getFormula2()); } @Override public CFRuleRecord copy() { return new CFRuleRecord(this); } @Override public HSSFRecordTypes getGenericRecordType() { return HSSFRecordTypes.CF_RULE; } }
⏎ org/apache/poi/hssf/record/CFRuleRecord.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, 8410👍, 0💬
Popular Posts:
How to read XML document from socket connections with the socket\DelayedInput.java provided in the A...
How to run "jarsigner" command from JDK tools.jar file? "jarsigner" command allows you to digitally ...
What Is junit-3.8.1.jar? junit-3.8.1.jar is the version 3.8.1 of JUnit JAR library file. JUnit is a ...
What is jxl.jar 2.6.12? jxl.jar 2.6.12 is the JAR file for Java Excel API 2.6.12, which is a Java li...
What is the sax\Writer.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 insta...