poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Praveen Mathew" <prmat...@in.ibm.com>
Subject Re: test cases
Date Mon, 23 Jun 2003 09:46:42 GMT
Hi all,
             I am back to HWPF after a good vacation... I have gone 
through the codes which Ryan has added. Thanks Ryan for your work.

I am planning to create a Doc file with just 1 character in it...say "H". 
This means I only have to deal with the minimum datastructures and that 
too for the
condition where index = 0.

I need some help regarding this.

I am going to convert a String with "H" into a ByteArrayInputStream& then 
using POIFS createDocument make a Doc, which will only have the 
stream.  I suppose this will create a FIB which I can modify.

But there is no way I can create a "1Table" stream as I did above, I 
should create it myself.

So I need to know what is the order in which i should go on creating the 
different DataStructures, like PlexofCps, DiskFormatedPage, CHPX, PAPX 
etc... for making the "1Table" stream. Since I have only one character "H" 
I will have only 1 instance of all the dataStructures.
How will I link the FIB in "WordDocument" stream with "1Table" stream?.
Also If I need to show the "H" font = Arial, which datastructure should I 

Thanks & Regards

Praveen Mathew
IBM Software Labs,Airport Road,
Bangalore - 560 017,India.
Ph : +91- 80 - 504 4609 (Direct)
       +91 - 80 - 5262355 Extn: 3609
Email: prmathew@in.ibm.com

"Ryan Ackley" <sackley@cfl.rr.com>
21/06/2003 00:55
Please respond to "POI Developers List"

        To:     "POI Developers List" <poi-dev@jakarta.apache.org>
        Subject:        test cases


How do you create unit tests when your tests depend on a file being 
Never done that before. How did you guys do it for HSSF?


To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message