Class FlagsUtil


  • public final class FlagsUtil
    extends java.lang.Object
    Converts between a PDF annotation's /F flags integer (ISO 32000-1 Table 165) and XFDF's flags attribute, a comma-separated list of the flag names that are set (e.g. "print,nozoom,norotate").
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int parseFlags​(java.lang.String flagsAttribute)
      0 if flagsAttribute is null/blank or names no recognized flag.
      static java.lang.String toFlagsString​(int flags)
      null if flags is 0 (no flags set -- XFDF real-world producers simply omit the attribute in that case).
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toFlagsString

        public static java.lang.String toFlagsString​(int flags)
        null if flags is 0 (no flags set -- XFDF real-world producers simply omit the attribute in that case).
      • parseFlags

        public static int parseFlags​(java.lang.String flagsAttribute)
        0 if flagsAttribute is null/blank or names no recognized flag.