diff --git a/src/java/org/apache/poi/hpsf/SummaryInformation.java b/src/java/org/apache/poi/hpsf/SummaryInformation.java index d25aa58e27..5c260187c0 100644 --- a/src/java/org/apache/poi/hpsf/SummaryInformation.java +++ b/src/java/org/apache/poi/hpsf/SummaryInformation.java @@ -620,10 +620,9 @@ public final class SummaryInformation extends SpecialPropertySet { * method is implemented. Please note that the return type is likely to * change!
* - *Hint to developers: Drew Varner <Drew.Varner - * -at- sc.edu> said that this is an image in WMF or Clipboard (BMP?) - * format. However, we won't do any conversion into any image type but - * instead just return a byte array.
+ *To process this data, you may wish to make use of the + * {@link Thumbnail} class. The raw data is generally + * an image in WMF or Clipboard (BMP?) format
* * @return The thumbnail ornull
*/
@@ -632,6 +631,20 @@ public final class SummaryInformation extends SpecialPropertySet {
return (byte[]) getProperty(PropertyIDMap.PID_THUMBNAIL);
}
+ /**
+ * Returns the thumbnail (or null
), processed
+ * as an object which is (largely) able to unpack the thumbnail
+ * image data.
null
+ */
+ public Thumbnail getThumbnailThumbnail()
+ {
+ byte[] data = getThumbnail();
+ if (data == null) return null;
+ return new Thumbnail(data);
+ }
+
/**