What you could do is looking into the HPSF test cases: In the src/testcases there is a class org.apache.poi.hpsf.basic.TestWrite. Look at its methods testWriteEmptyPropertySet and testWriteSimplePropertySet. Both create a new file and write an empty resp. a simple property set to it, close the file, reopen it and check whether the contents is as expected.
Comparing with your own code might help.
--
Rainer Klute
Software-Architekt
Telefon: +49 (0) 231 / 98 60-222
Telefax: +49 (0) 231 / 98 60-211
Mobil: +49 (0) 151 / 17396741
+49 (0) 172 / 2324824
http://www.itemis.de/
[email protected]
https://www.xing.com/profile/Rainer_Klute2
itemis AG
Am Brambusch 15-24
44536 Lünen
OpenPGP-Fingerprint: E4E4386515EE0BED5C162FBB5343461584B5A42E
- Wenn deine E-Mail vertraulicher als eine Postkarte sein soll...
Rechtlicher Hinweis:
Amtsgericht Dortmund, HRB 20621
Vorstand: Wolfgang Neuhaus, Jens Wagener, Dr. Georg Pietrek
Aufsichtsrat: Dr. Burkhard Igel(Vors.), Stephan Grollmann, Michael Neuhaus
signature.asc
Description: OpenPGP digital signature
