|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hpsf.examples.ModifyDocumentSummaryInformation
public class ModifyDocumentSummaryInformation
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.
Constructor Summary | |
---|---|
ModifyDocumentSummaryInformation()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Main method - see class description. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModifyDocumentSummaryInformation()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.io.IOException, NoPropertySetStreamException, MarkUnsupportedException, UnexpectedPropertySetTypeException, WritingNotSupportedException
Main method - see class description.
args
- The command-line parameters.
java.io.IOException
MarkUnsupportedException
NoPropertySetStreamException
UnexpectedPropertySetTypeException
WritingNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |