Class COSBoolean

java.lang.Object
org.sejda.sambox.cos.COSBase
org.sejda.sambox.cos.COSBoolean
All Implemented Interfaces:
COSObjectable

public final class COSBoolean extends COSBase
This class represents a boolean value in the PDF document.
Author:
Ben Litchfield
  • Field Details

  • Method Details

    • getValue

      public boolean getValue()
      Returns:
      The boolean value of this object.
    • valueOf

      public static COSBoolean valueOf(boolean value)
      Parameters:
      value - Parameter telling which boolean value to get.
      Returns:
      The single boolean instance that matches the parameter.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • accept

      public void accept(COSVisitor visitor) throws IOException
      Description copied from class: COSBase
      Visitor pattern for the COS model objects
      Specified by:
      accept in class COSBase
      Throws:
      IOException
    • idIfAbsent

      public void idIfAbsent(IndirectCOSObjectIdentifier id)
      Description copied from class: COSBase
      Assign an id to this COSBase if it doesn't have one already.
      Overrides:
      idIfAbsent in class COSBase