Package org.apache.pdfbox.cos
Class COSNull
- java.lang.Object
-
- org.apache.pdfbox.cos.COSBase
-
- org.apache.pdfbox.cos.COSNull
-
- All Implemented Interfaces:
COSObjectable
public final class COSNull extends COSBase
This class represents a null PDF object.- Author:
- Ben Litchfield
-
-
Field Summary
Fields Modifier and Type Field Description static COSNullNULLThe one null object in the system.static byte[]NULL_BYTESThe null token.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectaccept(ICOSVisitor visitor)Visitor pattern double dispatch method.java.lang.StringtoString()voidwritePDF(java.io.OutputStream output)This will output this string as a PDF object.-
Methods inherited from class org.apache.pdfbox.cos.COSBase
getCOSObject, isDirect, setDirect
-
-
-
-
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 java.lang.Object accept(ICOSVisitor visitor) throws java.io.IOException
Visitor pattern double dispatch method.
-
writePDF
public void writePDF(java.io.OutputStream output) throws java.io.IOExceptionThis 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:
toStringin classjava.lang.Object
-
-