Class ASBoolean


  • public class ASBoolean
    extends ASObject
    This class represents a non-cos PDF boolean object.
    • Constructor Summary

      Constructors 
      Constructor Description
      ASBoolean​(boolean value)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isFalse()
      Returns true if this boolean object represent false else false.
      boolean isTrue()
      Returns true if this boolean object represent true else false.
      java.lang.String toString()  
      void write​(OutputByteStream outputByteStream)
      Writes the ASObject to the given OutputStream in the format expected by the PDF Spec.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ASBoolean

        public ASBoolean​(boolean value)
        Constructor.
    • Method Detail

      • isTrue

        public boolean isTrue()
        Returns true if this boolean object represent true else false.
      • isFalse

        public boolean isFalse()
        Returns true if this boolean object represent false else false.
      • write

        public void write​(OutputByteStream outputByteStream)
                   throws PDFIOException
        Description copied from class: ASObject
        Writes the ASObject to the given OutputStream in the format expected by the PDF Spec.
        Specified by:
        write in class ASObject
        Parameters:
        outputByteStream - OutputByteStream to write to.
        Throws:
        PDFIOException - exception from OutputStream
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object