HPSF HOW-TO
by Rainer Klute
1. How To Use the HPSF API
This HOW-TO is organized in four sections. You should read them sequentially because the
later sections build upon the earlier ones.
1.
The first section explains how to read the most important standard properties of a
Microsoft Office document. Standard properties are things like title, author, creation date
etc. It is quite likely that you will find here what you need and don't have to read the
other sections.
2.
The second section goes a small step further and focusses on reading additional
standard properties. It also talks about exceptions that may be thrown when dealing
with HPSF and shows how you can read properties of embedded objects.
3.
The third section explains how to write standard properties. HPSF provides some
high-level classes and methods which make writing of standard properties easy. They are
based on the low-level writing functions explained in the fifth section.
4.
The fourth section tells how to read non-standard properties. Non-standard properties
are application-specific triples consisting of an ID, a type, and a value.
5.
The fifth section tells you how to write property set streams using HPSF's low-level
methods. You have to understand the fourth section before you should think about
low-level writing properties. Check the Javadoc API documentation to find out about the
details!
Note:
Please note: HPSF's writing functionality is not present in POI releases up to and including 2.5. In order to write properties
you have to download a 3.0.x POI release, or retrieve the POI development version from the Subversion repository.
1.1. Reading Standard Properties
Note:
This section explains how to read the most important standard properties of a Microsoft Office document. Standard properties
are things like title, author, creation date etc. This section introduces the summary information stream which is used to keep
these properties. Chances are that you will find here what you need and don't have to read the other sections.
Page 1
Copyright © 2002-2007 The Apache Software Foundation All rights reserved.
- 1
- 2
- 3
- 4
前往页