Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
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/write/biff/ExtendedSSTRecord.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.write.biff;
import jxl.biff.IntegerHelper;
import jxl.biff.Type;
import jxl.biff.WritableRecordData;
/**
* Indicates an extension to the Shared String Table. Currently this
* contains blank records
*
* Thanks to Guenther for contributing a proper implementation of the EXTSST
* record, replacing my previous dummy version
*/
class ExtendedSSTRecord extends WritableRecordData
{
private static final int infoRecordSize = 8;
private int numberOfStrings;
private int[] absoluteStreamPositions;
private int[] relativeStreamPositions;
private int currentStringIndex = 0;
/**
* Constructor
*
* @param numstrings the number of strings per bucket
* @param streampos the absolute stream position of the beginning of
* the SST record
*/
public ExtendedSSTRecord(int newNumberOfStrings)
{
super(Type.EXTSST);
numberOfStrings = newNumberOfStrings;
int numberOfBuckets = getNumberOfBuckets();
absoluteStreamPositions = new int[numberOfBuckets];
relativeStreamPositions = new int[numberOfBuckets];
currentStringIndex = 0;
}
public int getNumberOfBuckets()
{
int numberOfStringsPerBucket = getNumberOfStringsPerBucket();
return numberOfStringsPerBucket != 0 ?
(numberOfStrings + numberOfStringsPerBucket - 1) /
numberOfStringsPerBucket : 0;
}
public int getNumberOfStringsPerBucket()
{
// XXX
// should come up with a more clever calculation
// bucket limit should not be bigger than 1024, otherwise we end
// up with too many buckets and would have to write continue records
// for the EXTSST record which we want to avoid for now.
final int bucketLimit = 128;
return (numberOfStrings + bucketLimit - 1) / bucketLimit;
}
public void addString(int absoluteStreamPosition,
int relativeStreamPosition)
{
absoluteStreamPositions[currentStringIndex] =
absoluteStreamPosition + relativeStreamPosition;
relativeStreamPositions[currentStringIndex] = relativeStreamPosition;
currentStringIndex++;
}
/**
* Gets the binary data to be written out
*
* @return the binary data
*/
public byte[] getData()
{
int numberOfBuckets = getNumberOfBuckets();
byte[] data = new byte[2 + (8 * numberOfBuckets)];
// number of strings per bucket
IntegerHelper.getTwoBytes(getNumberOfStringsPerBucket(), data, 0);
for (int i = 0; i < numberOfBuckets; i++)
{
// absolute stream position
IntegerHelper.getFourBytes(absoluteStreamPositions[i],
data,
2 + (i * infoRecordSize));
// relative offset
IntegerHelper.getTwoBytes(relativeStreamPositions[i],
data,
6 + (i * infoRecordSize));
// reserved
// IntegerHelper.getTwoBytes(0x0, data, 8 + (i * infoRecordSize));
}
return data;
}
}
⏎ jxl/write/biff/ExtendedSSTRecord.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, ≈184🔥, 6💬
Popular Posts:
JDK 17 jdk.jfr.jmod is the JMOD file for JDK 17 JFR module. JDK 17 JFR module compiled class files a...
The Java Naming and Directory Interface (JNDI) is part of the Java platform, providing applications ...
ZooKeeper is a centralized service for maintaining configuration information, naming, providing dist...
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
JDK 17 java.rmi.jmod is the JMOD file for JDK 17 RMI (Remote Method Invocation) module. JDK 17 RMI m...