Class COSNull

  • All Implemented Interfaces:
    COSObjectable

    public final class COSNull
    extends COSBase
    This class represents a null PDF object.
    • 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.
    • Method Detail

      • accept

        public Object accept​(ICOSVisitor visitor)
                      throws 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:
        IOException - If an error occurs while visiting this object.
      • writePDF

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