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/write/biff/FileDataOutput.java
/********************************************************************* * * Copyright (C) 2007 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 java.io.OutputStream; import java.io.IOException; import java.io.File; import java.io.RandomAccessFile; import jxl.common.Logger; /** * Used to generate the excel biff data using a temporary file. This * class wraps a RandomAccessFile */ class FileDataOutput implements ExcelDataOutput { // The logger private static Logger logger = Logger.getLogger(FileDataOutput.class); /** * The temporary file */ private File temporaryFile; /** * The excel data */ private RandomAccessFile data; /** * Constructor * * @param tmpdir the temporary directory used to write files. If this is * NULL then the sytem temporary directory will be used */ public FileDataOutput(File tmpdir) throws IOException { temporaryFile = File.createTempFile("jxl",".tmp", tmpdir); temporaryFile.deleteOnExit(); data = new RandomAccessFile(temporaryFile, "rw"); } /** * Writes the bytes to the end of the array, growing the array * as needs dictate * * @param d the data to write to the end of the array */ public void write(byte[] bytes) throws IOException { data.write(bytes); } /** * Gets the current position within the file * * @return the position within the file */ public int getPosition() throws IOException { // As all excel data structures are four bytes anyway, it's ok to // truncate the long to an int return (int) data.getFilePointer(); } /** * Sets the data at the specified position to the contents of the array * * @param pos the position to alter * @param newdata the data to modify */ public void setData(byte[] newdata, int pos) throws IOException { long curpos = data.getFilePointer(); data.seek(pos); data.write(newdata); data.seek(curpos); } /** * Writes the data to the output stream */ public void writeData(OutputStream out) throws IOException { byte[] buffer = new byte[1024]; int length = 0; data.seek(0); while ((length = data.read(buffer)) != -1) { out.write(buffer, 0, length); } } /** * Called when the final compound file has been written */ public void close() throws IOException { data.close(); // Explicitly delete the temporary file, since sometimes it is the case // that a single process may be generating multiple different excel files temporaryFile.delete(); } }
⏎ jxl/write/biff/FileDataOutput.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, 70034👍, 6💬
Popular Posts:
How to download and install mysql-connector-j-8.0.31 .zip?Connector/J Java library is a JDBC Driver ...
JAX-RPC is an API for building Web services and clients that used remote procedure calls (RPC) and X...
JDK 17 jdk.compiler.jmod is the JMOD file for JDK 17 Compiler tool, which can be invoked by the "jav...
JDK 11 java.base.jmod is the JMOD file for JDK 11 Base module. JDK 11 Base module compiled class fil...
JDK 17 jdk.compiler.jmod is the JMOD file for JDK 17 Compiler tool, which can be invoked by the "jav...