Try this one, I got it from Google. msdn.microsoft.com/library/en-us/com/stgu_8910.asp
Drew Quoting Rainer Klute <[EMAIL PROTECTED]>: > Hi Drew, > > I added your patch to the CVS repository. However, > <http://msdn.microsoft.com/library/default.asp? url=/library/enus/com/stgu_8910.asp> > > gives me a page not found error. Could you please look it up > again and give me a better link? I'd like to include it in > the docs. > > Regarding the 0 return value, there is a method wasNull() which > distiguished between "valid return value" and "no security > field". See the javadocs for details! > > Drew Varner <[EMAIL PROTECTED]> 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> > > Best regards > Rainer Klute > > Rainer Klute IT-Consulting GmbH i. Gr. > Dipl.-Inform. > Rainer Klute E-Mail: [EMAIL PROTECTED] > K�rner Grund 24 Telefon: +49 172 2324824 > D-44143 Dortmund Telefax: +49 231 5349423 > > ___________________ Drew Varner [EMAIL PROTECTED]
