Reminder: When submitting patches (especially documentation patches) please remember to site yourself in the "authors" section and include that in the patch. (for source this is a @author tag on the class javadoc) -- This makes sure we give credit where credit is due.
-Andy On Fri, 2002-04-26 at 01:38, Drew Varner wrote: > 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] -- http://www.superlinksoftware.com http://jakarta.apache.org/poi - port of Excel/Word/OLE 2 Compound Document format to java http://developer.java.sun.com/developer/bugParade/bugs/4487555.html - fix java generics! The avalanche has already started. It is too late for the pebbles to vote. -Ambassador Kosh
