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/biff/drawing/EscherRecordData.java
/********************************************************************* * * Copyright (C) 2003 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.biff.drawing; import jxl.common.Logger; import jxl.biff.IntegerHelper; /** * A single record from an Escher stream. Basically this a container for * the header data for each Escher record */ final class EscherRecordData { /** * The logger */ private static Logger logger = Logger.getLogger(EscherRecordData.class); /** * The byte position of this record in the escher stream */ private int pos; /** * The instance value */ private int instance; /** * The version value */ private int version; /** * The record id */ private int recordId; /** * The length of the record, excluding the 8 byte header */ private int length; /** * The length of the stream */ private int streamLength; /** * Indicates whether this record is a container */ private boolean container; /** * The type of this record */ private EscherRecordType type; /** * A handle back to the drawing group, which contains the entire escher * stream byte data */ private EscherStream escherStream; /** * Constructor * * @param dg the escher stream data * @param p the current position in the stream */ public EscherRecordData(EscherStream dg, int p) { escherStream = dg; pos = p; byte[] data = escherStream.getData(); streamLength = data.length; // First two bytes contain instance and version int value = IntegerHelper.getInt(data[pos], data[pos + 1]); // Instance value is the first 12 bits instance = (value & 0xfff0) >> 4; // Version is the last four bits version = value & 0xf; // Bytes 2 and 3 are the record id recordId = IntegerHelper.getInt(data[pos + 2], data[pos + 3]); // Length is bytes 4,5,6 and 7 length = IntegerHelper.getInt(data[pos + 4], data[pos + 5], data[pos + 6], data[pos + 7]); if (version == 0x0f) { container = true; } else { container = false; } } /** * Constructor * * @param t the type of the escher record */ public EscherRecordData(EscherRecordType t) { type = t; recordId = type.getValue(); } /** * Determines whether this record is a container * * @return TRUE if this is a container, FALSE otherwise */ public boolean isContainer() { return container; } /** * Accessor for the length, excluding the 8 byte header * * @return the length excluding the 8 byte header */ public int getLength() { return length; } /** * Accessor for the record id * * @return the record id */ public int getRecordId() { return recordId; } /** * Accessor for the drawing group stream * * @return the drawing group stream */ EscherStream getDrawingGroup() { return escherStream; } /** * Gets the position in the stream * * @return the position in the stream */ int getPos() { return pos; } /** * Gets the escher type of this record * * @return the escher type */ EscherRecordType getType() { if (type == null) { type = EscherRecordType.getType(recordId); } return type; } /** * Gets the instance value * * @return the instance value */ int getInstance() { return instance; } /** * Sets whether or not this is a container - called when writing * out an escher stream * * @param c TRUE if this is a container, FALSE otherwise */ void setContainer(boolean c) { container = c; } /** * Called from the subclass when writing to set the instance value * * @param inst the instance */ void setInstance(int inst) { instance = inst; } /** * Called when writing to set the length of this record * * @param l the length */ void setLength(int l) { length = l; } /** * Called when writing to set the version of this record * * @param v the version */ void setVersion(int v) { version = v; } /** * Adds the 8 byte header data on the value data passed in, returning * the modified data * * @param d the value data * @return the value data with the header information */ byte[] setHeaderData(byte[] d) { byte[] data = new byte[d.length + 8]; System.arraycopy(d, 0, data, 8, d.length); if (container) { version = 0x0f; } // First two bytes contain instance and version int value = instance << 4; value |= version; IntegerHelper.getTwoBytes(value, data, 0); // Bytes 2 and 3 are the record id IntegerHelper.getTwoBytes(recordId, data, 2); // Length is bytes 4,5,6 and 7 IntegerHelper.getFourBytes(d.length, data, 4); return data; } /** * Accessor for the header stream * * @return the escher stream */ EscherStream getEscherStream() { return escherStream; } /** * Gets the data that was read in, excluding the header data * * @return the value data that was read in */ byte[] getBytes() { byte[] d = new byte[length]; System.arraycopy(escherStream.getData(), pos + 8, d, 0, length); return d; } /** * Accessor for the stream length * * @return the stream length */ int getStreamLength() { return streamLength; } }
⏎ jxl/biff/drawing/EscherRecordData.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, 45767👍, 6💬
Popular Posts:
commons-io-1.4.jar is the JAR file for Commons IO 1.4, which is a library of utilities to assist wit...
How to download and install ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is a Java 5 J...
How to download and install JDK (Java Development Kit) 1.3? If you want to write Java applications, ...
What Is jaxb-api-2.1.6.jar? Java Architecture for XML Binding (JAXB) is a Java API that allows Java ...
JDK 11 jdk.hotspot.agent.jmod is the JMOD file for JDK 11 Hotspot Agent module. JDK 11 Hotspot Agent...