Below is a patch (diff) for the file jakarta-poi/src/java/org/apache/poi/hpsf/SummaryInformation.java
The patch adds some more detail to the Javadoc comments for the method public int getSecurity() There seems to be a problem here. The method returns 0 if the field is not present. Well, 0 is also a valid value for the field according to Microsoft, indicating a security level of "None". Is there a way to distinguish between the two or are they synonymous? Source of info for the comment patch: http://msdn.microsoft.com/library/default.asp? url=/library/enus/com/stgu_8910.asp file: HSPF SummaryInformation.java 282,292c282,283 < * <p>Returns < * <ul> < * <li>0 if the {@link SummaryInformation} does not contain a < * security field or if there is no security on the document < * </li> < * <li>1 if the document is password protected</li> < * <li>2 if the document is read-only recommended</li> < * <li>4 if the document is read-only enforced</li> < * <li>8 if the document is locked for annotations</li> < * </ul> < * </p> --- > * <p>Returns the stream's security field or 0 if the {@link > * SummaryInformation} does not contain a security field.</p> Thanks, Drew ___________________ Drew Varner [EMAIL PROTECTED]
