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 jxl.jar 2.6.12
What is jxl.jar 2.6.12?
✍: fyicenter.com
jxl.jar 2.6.12 is the JAR file for Java Excel API 2.6.12, which is a Java library for reading, writing and modifying Microsoft Excel spreadsheet files.
JAR File Size and Download Location:
JAR name: jxl-2.6.12.jar Target JDK version: 1.6 Dependency: None File name: jxl.jar File size: 725735 bytes Release date: 24-Oct-2009 Download: Java Excel API Website.
Here are Java Source Code files for jxl-2.6.12.jar:
⏎ jxl/read/biff/SharedFormulaRecord.java
/********************************************************************* * * Copyright (C) 2002 Andrew Khan * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ***************************************************************************/ package jxl.read.biff; import java.text.NumberFormat; import java.util.ArrayList; import jxl.common.Logger; import jxl.Cell; import jxl.CellType; import jxl.biff.FormattingRecords; import jxl.biff.IntegerHelper; import jxl.biff.WorkbookMethods; import jxl.biff.formula.ExternalSheet; /** * A shared formula */ class SharedFormulaRecord { /** * The logger */ private static Logger logger = Logger.getLogger(SharedFormulaRecord.class); /** * The first row to which this shared formula applies */ private int firstRow; /** * The last row to which this shared formula applies */ private int lastRow; /** * The first column to which this shared formula applies */ private int firstCol; /** * The last column to which this shared formula applies */ private int lastCol; /** * The first (template) formula comprising this group */ private BaseSharedFormulaRecord templateFormula; /** * The rest of the cells comprising this shared formula */ private ArrayList formulas; /** * The token data */ private byte[] tokens; /** * A handle to the external sheet */ private ExternalSheet externalSheet; /** * A handle to the sheet */ private SheetImpl sheet; /** * Constructs this object from the raw data. Creates either a * NumberFormulaRecord or a StringFormulaRecord depending on whether * this formula represents a numerical calculation or not * * @param t the raw data * @param fr the base shared formula * @param es the workbook, which contains the external sheet references * @param nt the workbook * @param si the sheet */ public SharedFormulaRecord(Record t, BaseSharedFormulaRecord fr, ExternalSheet es, WorkbookMethods nt, SheetImpl si) { sheet = si; byte[] data = t.getData(); firstRow = IntegerHelper.getInt(data[0], data[1]); lastRow = IntegerHelper.getInt(data[2], data[3]); firstCol = data[4] & 0xff; lastCol = data[5] & 0xff; formulas = new ArrayList(); templateFormula = fr; tokens = new byte[data.length - 10]; System.arraycopy(data, 10, tokens, 0, tokens.length); } /** * Adds this formula to the list of formulas, if it falls within * the bounds * * @param fr the formula record to test for membership of this group * @return TRUE if the formulas was added, FALSE otherwise */ public boolean add(BaseSharedFormulaRecord fr) { boolean added = false; int r = fr.getRow(); if (r >= firstRow && r <= lastRow) { int c = fr.getColumn(); if (c >= firstCol && c <= lastCol) { formulas.add(fr); added = true; } } return added; } /** * Manufactures individual cell formulas out the whole shared formula * debacle * * @param fr the formatting records * @param nf flag indicating whether this uses the 1904 date system * @return an array of formulas to be added to the sheet */ Cell[] getFormulas(FormattingRecords fr, boolean nf) { Cell[] sfs = new Cell[formulas.size() + 1]; // This can happen if there are many identical formulas in the // sheet and excel has not sliced and diced them exclusively if (templateFormula == null) { logger.warn("Shared formula template formula is null"); return new Cell[0]; } templateFormula.setTokens(tokens); NumberFormat templateNumberFormat = null; // See if the template formula evaluates to date if (templateFormula.getType() == CellType.NUMBER_FORMULA) { SharedNumberFormulaRecord snfr = (SharedNumberFormulaRecord) templateFormula; templateNumberFormat = snfr.getNumberFormat(); if (fr.isDate(templateFormula.getXFIndex())) { templateFormula = new SharedDateFormulaRecord(snfr, fr, nf, sheet, snfr.getFilePos()); templateFormula.setTokens(snfr.getTokens()); } } sfs[0] = templateFormula; BaseSharedFormulaRecord f = null; for (int i = 0; i < formulas.size(); i++) { f = (BaseSharedFormulaRecord) formulas.get(i); // See if the formula evaluates to date if (f.getType() == CellType.NUMBER_FORMULA) { SharedNumberFormulaRecord snfr = (SharedNumberFormulaRecord) f; if (fr.isDate(f.getXFIndex())) { f = new SharedDateFormulaRecord(snfr, fr, nf, sheet, snfr.getFilePos()); } else { ;// snfr.setNumberFormat(templateNumberFormat); } } f.setTokens(tokens); sfs[i + 1] = f; } return sfs; } /** * Accessor for the template formula. Called when a shared formula has, * for some reason, specified an inappropriate range and it is necessary * to retrieve the template from a previously available shared formula */ BaseSharedFormulaRecord getTemplateFormula() { return templateFormula; } }
⏎ jxl/read/biff/SharedFormulaRecord.java
Or download all of them as a single archive file:
File name: jxl-2.6.12-src.zip File size: 824057 bytes Release date: 2009-10-24 Download
⇐ What Is jexcelapi_2_6_12.zip
2017-06-09, 87269👍, 6💬
Popular Posts:
Java Servlet 3.0 Specification API. JAR File Size and Download Location: File name: servlet-api.jar,...
Commons Pool provides an Object-pooling API, with three major aspects: 1. A generic object pool inte...
Java Cryptography Extension 1.6 JAR File Size and Download Location: File name: jce.jar, jce-1.6.jar...
JDK 11 jdk.jlink.jmod is the JMOD file for JDK 11 JLink tool, which can be invoked by the "jlink" co...
What Is log4j-1.2.13.jar? I got the JAR file from logging-log4j-1.2.13.zip .log4j-1.2.13.jar is the ...