Package org.apache.pdfbox.cos
Class COSNull
java.lang.Object
org.apache.pdfbox.cos.COSBase
org.apache.pdfbox.cos.COSNull
- All Implemented Interfaces:
COSObjectable
This class represents a null PDF object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final COSNullThe one null object in the system.static final byte[]The null token. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ICOSVisitor visitor) Visitor pattern double dispatch method.toString()voidwritePDF(OutputStream output) This will output this string as a PDF object.
-
Field Details
-
NULL_BYTES
public static final byte[] NULL_BYTESThe null token. -
NULL
The one null object in the system.
-
-
Constructor Details
-
COSNull
private COSNull()Constructor.
-
-
Method Details
-
accept
Visitor pattern double dispatch method.- Specified by:
acceptin classCOSBase- Parameters:
visitor- The object to notify when visiting this object.- Throws:
IOException- If an error occurs while visiting this object.
-
writePDF
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.
-
toString
-