diff --git a/src/java/org/apache/poi/hpsf/SummaryInformation.java b/src/java/org/apache/poi/hpsf/SummaryInformation.java index 1c591ab52e..85ab273ea6 100644 --- a/src/java/org/apache/poi/hpsf/SummaryInformation.java +++ b/src/java/org/apache/poi/hpsf/SummaryInformation.java @@ -279,8 +279,23 @@ public class SummaryInformation extends SpecialPropertySet /** - *
Returns the stream's security field or 0 if the {@link - * SummaryInformation} does not contain a security field.
+ *Returns one of the following values:
+ * + *0 if the {@link SummaryInformation} does not contain a + * security field or if there is no security on the document. Use + * {@link #wasNull} to distinguish between the two cases!
1 if the document is password protected
2 if the document is read-only recommended
4 if the document is read-only enforced
8 if the document is locked for annotations