public final class ModifyDocumentSummaryInformation extends Object
This is a sample application showing how to easily modify properties in the summary information and in the document summary information. The application reads the name of a POI filesystem from the command line and performs the following actions:
Open the POI filesystem.
Read the summary information.
Read and print the "author" property.
Change the author to "Rainer Klute".
Read the document summary information.
Read and print the "category" property.
Change the category to "POI example".
Read the custom properties (if available).
Insert a new custom property.
Write the custom properties back to the document summary information.
Write the summary information to the POI filesystem.
Write the document summary information to the POI filesystem.
Write the POI filesystem back to the original file.
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Main method - see class description.
|