易截截图软件、单文件、免安装、纯绿色、仅160KB

Java操作MS Word和Excel文档

能通过Java来操作Word或者Excel的api,据我所知的有这些,都考察了一下,开源的除了Openoffice和officewriter对Word的表格有好的支持外,其他都很不专业,或者不支持。
jacob http://sourceforge.net/projects/jacob-project/
JACOB is a JAVA-COM Bridge that allows you to call COM Automation components from Java. It uses JNI to make native calls to the COM libraries. JACOB runs on x86 and x64 environments supporting 32 bit and 64 bit JVMs
docx4j http://dev.plutext.org/trac/docx4j
docx4j is our library for unzipping a docx "package", and parsing the WordprocessingML XML to create an in-memory representation in Java.
It is available under the Apache License (v2).
This library is used by the plutext collaboration server, and the docx4all editor.
The library is designed to round trip docx files with 100% fidelity, and supports all WordML.
jxl http://jexcelapi.sourceforge.net/
poi http://poi.apache.org/
Aspose.Words http://www.aspose.com/ 付费产品
Aspose.Words for Java, it runs on any OS where Java is installed.
It will output the document to DOC, DOCX or RTF if you need an MS Word output format. All are supported equally well.
Using this API you can create a document from scratch, literally from nodes and set their formatting properties. You can also use a DocumentBuilder which provides higher level methods such as create a table row, insert a field etc. Or you can copy/join/move portions between existing pre created document, say you want to assemble a contract, just grab and copy pieces from several documents and Aspose.Words will merge styles, list formatting etc properly in the resulting document.
You will be able to insert a TOC field using Aspose.Words, but as of today, the TOC field will require a field update when the document is opened in Microsoft Word. However, we are going to release full support for TOC fields early in 2010. E.g. it will build complete TOC as MS Word does it.
openoffice http://www.openoffice.org/
officewriter http://officewriter.sof


相关文档:

Java中常用设计模式总结

在Java中有23中设计模式,下面只对部分常用的设计模式介绍一下:
1.单例模式(有的书上说叫单态模式其实都一样)
该模式主要目的是使内存中保持1个对象。看下面的例子:
package org.sp.singleton;
//方法一
public class Singleton {
//将自身的实例对象设置为一个属性,并加上Static和final修饰符
private static f ......

java程序如何生成jar文件

两步走:
1.java工程打包成Jar文件(权且当你是App工程号了.)
   这个好办,在Eclipse中右键选择项目上的Export功能,在导出类型中选项jar即可.
   在后续界面上有几个地方需要注意的.
   记的勾选"Export generated class files and resources". 这样就会把你classpath中引用到得第三方 ......

Java网站1

http://www.onjava.com
    O'Reilly的Java网站. 每周都有新文章
http://java.sun.com
    官方的Java开发者网站 - 每周都有新文章发表
http://www.developer.com/java
    由Gamelan.com 维护的Java技术文章网站
http://www.java.net
  &nb ......

浅谈Java多线程的同步问题

多线程的同步依靠的是对象锁机制,synchronized关键字的背后就是利用了封锁来实现对共享资源的互斥访问。
下面以一个简单的实例来进行对比分析。实例要完成的工作非常简单,就是创建10个线程,每个线程都打印从0到99这100个数字,我们希望线程之间不会出现交叉乱序打印,而是顺序地打印。
先来看第一段代码,这里我们在ru ......

Java的跨平台

Java的跨平台是通过Java虚拟机(JVM)来实现的。
      Java源文件的编译过程
             Java应用程序的开发周期包括编译、下载、解释和执行几个部分。Java编译程序将Java源程序翻译为JVM可执行代码—字节码。这一编译过 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号