如何用java从一个.doc文件中读入纯文字或者纯图片啊?

解决方案 »

  1.   

    http://jakarta.apache.org/poi 对office的文件解析,生成的开源组件
      

  2.   

    to amozon:The POI project consists of APIs for manipulating various file formats based upon Microsoft's OLE 2 Compound Document format using pure Java. In short, you can read and write MS Excel files using Java. Soon, you'll be able to read and write Word files using Java. POI is your Java Excel solution as well as your Java Word solution. However, we have a complete API for porting other OLE 2 Compound Document formats and welcome others to participate. 从http://jakarta.apache.org/poi  摘录的。
    Soon, you'll be able to read and write Word files using Java.