From: PJ Fanning Date: Thu, 22 Jul 2021 12:36:39 +0000 (+0000) Subject: add extra output to example X-Git-Tag: REL_5_1_0~130 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4abda38ceb4de2d3d9e6547e99950856aa079ba9;p=poi.git add extra output to example git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1891714 13f79535-47bb-0310-9956-ffa450edef68 --- 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() + ".");