diff options
author | PJ Fanning <fanningpj@apache.org> | 2021-07-22 12:36:39 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2021-07-22 12:36:39 +0000 |
commit | 4abda38ceb4de2d3d9e6547e99950856aa079ba9 (patch) | |
tree | 9cad85ffcd460e64cb3637051e089a925c3bfe6c /poi-examples | |
parent | cb6e6e0609a99c15a656ba850b122cea83234870 (diff) | |
download | poi-4abda38ceb4de2d3d9e6547e99950856aa079ba9.tar.gz poi-4abda38ceb4de2d3d9e6547e99950856aa079ba9.zip |
add extra output to example
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1891714 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-examples')
-rw-r--r-- | poi-examples/src/main/java/org/apache/poi/examples/hpsf/ModifyDocumentSummaryInformation.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/poi-examples/src/main/java/org/apache/poi/examples/hpsf/ModifyDocumentSummaryInformation.java b/poi-examples/src/main/java/org/apache/poi/examples/hpsf/ModifyDocumentSummaryInformation.java index b42b936768..c3f5cf8f22 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/hpsf/ModifyDocumentSummaryInformation.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/hpsf/ModifyDocumentSummaryInformation.java @@ -15,7 +15,7 @@ limitations under the License. ==================================================================== */ -package org.apache.poi.examples.hpsf; +package com.github.pjfanning.poi.sample; import java.io.File; import java.io.FileNotFoundException; @@ -98,6 +98,7 @@ public final class ModifyDocumentSummaryInformation { /* Change the author to "Rainer Klute". Any former author value will * be lost. If there has been no author yet, it will be created. */ + System.out.println("Author is " + si.getAuthor()); si.setAuthor("Rainer Klute"); System.out.println("Author changed to " + si.getAuthor() + "."); @@ -120,6 +121,7 @@ public final class ModifyDocumentSummaryInformation { /* Change the category to "POI example". Any former category value will * be lost. If there has been no category yet, it will be created. */ + System.out.println("Category is " + dsi.getCategory()); dsi.setCategory("POI example"); System.out.println("Category changed to " + dsi.getCategory() + "."); |