diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2017-05-14 22:25:33 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2017-05-14 22:25:33 +0000 |
commit | 98b10cf68454fef15de8632b472c38442aaf95d5 (patch) | |
tree | 38c5b401f837ec45ae4ba572e863e46f3a8d3013 /src/examples | |
parent | 965860b11607a2d610b941cdd648cc9bb7017a58 (diff) | |
download | poi-98b10cf68454fef15de8632b472c38442aaf95d5.tar.gz poi-98b10cf68454fef15de8632b472c38442aaf95d5.zip |
#52117 - Invalid "last printed" summary field value - added helper method to identify undefined dates
HPSF: fixed uid listing in Section.toString()
HPSF: moved timestamp based "utility" methods to Filetime class
HPSF: preserve original datastream for unchanged property sets
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795123 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java | 7 | ||||
-rw-r--r-- | src/examples/src/org/apache/poi/hpsf/examples/WriteAuthorAndTitle.java | 5 |
2 files changed, 3 insertions, 9 deletions
diff --git a/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java b/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java index 8282c00576..f30dc8be0e 100644 --- a/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java +++ b/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java @@ -36,7 +36,6 @@ import org.apache.poi.hpsf.MutablePropertySet; import org.apache.poi.hpsf.NoPropertySetStreamException; import org.apache.poi.hpsf.PropertySet; import org.apache.poi.hpsf.PropertySetFactory; -import org.apache.poi.hpsf.Util; import org.apache.poi.hpsf.WritingNotSupportedException; import org.apache.poi.poifs.eventfilesystem.POIFSReader; import org.apache.poi.poifs.eventfilesystem.POIFSReaderEvent; @@ -352,13 +351,11 @@ public class CopyCompare /* According to the definition of the processPOIFSReaderEvent method * we cannot pass checked exceptions to the caller. The following - * lines check whether a checked exception occured and throws an + * lines check whether a checked exception occurred and throws an * unchecked exception. The message of that exception is that of * the underlying checked exception. */ if (t != null) { - throw new HPSFRuntimeException - ("Could not read file \"" + path + "/" + name + - "\". Reason: " + Util.toString(t)); + throw new HPSFRuntimeException("Could not read file \"" + path + "/" + name, t); } } diff --git a/src/examples/src/org/apache/poi/hpsf/examples/WriteAuthorAndTitle.java b/src/examples/src/org/apache/poi/hpsf/examples/WriteAuthorAndTitle.java index b5734c0439..e5454aa93c 100644 --- a/src/examples/src/org/apache/poi/hpsf/examples/WriteAuthorAndTitle.java +++ b/src/examples/src/org/apache/poi/hpsf/examples/WriteAuthorAndTitle.java @@ -36,7 +36,6 @@ import org.apache.poi.hpsf.NoPropertySetStreamException; import org.apache.poi.hpsf.PropertySet; import org.apache.poi.hpsf.PropertySetFactory; import org.apache.poi.hpsf.SummaryInformation; -import org.apache.poi.hpsf.Util; import org.apache.poi.hpsf.Variant; import org.apache.poi.hpsf.WritingNotSupportedException; import org.apache.poi.hpsf.wellknown.PropertyIDMap; @@ -211,9 +210,7 @@ public class WriteAuthorAndTitle * unchecked exception. The message of that exception is that of * the underlying checked exception. */ if (t != null) { - throw new HPSFRuntimeException - ("Could not read file \"" + path + "/" + name + - "\". Reason: " + Util.toString(t)); + throw new HPSFRuntimeException("Could not read file \"" + path + "/" + name, t); } } |