Class COSNull

  • All Implemented Interfaces:
    COSObjectable

    public final class COSNull
    extends COSBase
    This class represents a null PDF object.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static COSNull NULL
      The one null object in the system.
      static byte[] NULL_BYTES
      The null token.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private COSNull()
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object accept​(ICOSVisitor visitor)
      visitor pattern double dispatch method.
      java.lang.String toString()
      void writePDF​(java.io.OutputStream output)
      This will output this string as a PDF object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • NULL_BYTES

        public static final byte[] NULL_BYTES
        The null token.
      • NULL

        public static final COSNull NULL
        The one null object in the system.
    • Constructor Detail

      • COSNull

        private COSNull()
        Constructor.
    • Method Detail

      • accept

        public java.lang.Object accept​(ICOSVisitor visitor)
                                throws java.io.IOException
        visitor pattern double dispatch method.
        Specified by:
        accept in class COSBase
        Parameters:
        visitor - The object to notify when visiting this object.
        Returns:
        any object, depending on the visitor implementation, or null
        Throws:
        java.io.IOException - If an error occurs while visiting this object.
      • writePDF

        public void writePDF​(java.io.OutputStream output)
                      throws java.io.IOException
        This will output this string as a PDF object.
        Parameters:
        output - The stream to write to.
        Throws:
        java.io.IOException - If there is an error writing to the stream.
      • toString

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