About Apache poi

Source: Internet
Author: User

I,

Poi is a sub-project of Apache. It aims to provide Java APIs packages for operations on various documents based on ooxml (Microsoft Office open XML) and ole2 (Object Linking and Embedding. This project is divided into several components, including a component called hwpf, which can only operate on Word files. This is the component I will use. The full name of hwpf is horrible word processor format. Translating to Chinese is a "terrible document processing format". With hwpf, developers can use pure JavaCodeThe Android system reads Word documents. The hwpf component is an important component used in the poi project to read Word documents. The following are several important classes of this component:

(1) Range: it is the core class of all hwpf object models. All the attributes of characters in Word documents are inherited from this class.

(2) Hwpfdocument: File class. The final form of any form of Word document is to customize the attributes of the object.

(3) Paragraph: a basic component of a Word document. Each document is divided into one paragraph, and all paragraphs form a Word document.

(4) Picture: each image embedded in a Word document is represented by a picture object, which includes a series of attributes such as the image size and content.

(5) Table: Each table embedded in a Word document is represented by a table object, which includes attributes such as the tablerow object and number of rows in each row of the table.

Other class files supplement the functions of the above core classes, and finally complete the reading of Word documents.

Because Word documents contain images, tables, and strings, you can use webview to display all of them on the Android system. First, read the content in the Word format document, add the corresponding HTML Tag, then write it into the HTML file, and then directly use webview to read the content of the HTML file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.